MCPcopy Create free account
hub / github.com/KbamApp/kbam / MainActivity

Class MainActivity

android/app/src/main/java/com/kbam/MainActivity.java:8–32  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

6import com.facebook.react.defaults.DefaultReactActivityDelegate;
7
8public 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}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected