| 6 | import com.facebook.react.defaults.DefaultReactActivityDelegate; |
| 7 | |
| 8 | public class MainActivity extends ReactActivity { |
| 9 | |
| 10 | /** |
| 11 | * Returns the name of the main component registered from JavaScript. This is used to schedule |
| 12 | * rendering of the component. |
| 13 | */ |
| 14 | @Override |
| 15 | protected String getMainComponentName() { |
| 16 | return "kbam"; |
| 17 | } |
| 18 | |
| 19 | /** |
| 20 | * Returns the instance of the {@link ReactActivityDelegate}. Here we use a util class {@link |
| 21 | * DefaultReactActivityDelegate} which allows you to easily enable Fabric and Concurrent React |
| 22 | * (aka React 18) with two boolean flags. |
| 23 | */ |
| 24 | @Override |
| 25 | protected ReactActivityDelegate createReactActivityDelegate() { |
| 26 | return new DefaultReactActivityDelegate( |
| 27 | this, |
| 28 | getMainComponentName(), |
| 29 | // If you opted-in for the New Architecture, we enable the Fabric Renderer. |
| 30 | DefaultNewArchitectureEntryPoint.getFabricEnabled()); |
| 31 | } |
| 32 | } |
nothing calls this directly
no outgoing calls
no test coverage detected