From 8ca8f830a09d8ff08ccb654199cb33779117cc37 Mon Sep 17 00:00:00 2001 From: Akshay Nair Date: Sun, 12 May 2024 16:40:21 +0530 Subject: Initial commit Generated by react-native@0.74.1 --- .../java/com/owynlauncherrewrite/MainActivity.kt | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 android/app/src/main/java/com/owynlauncherrewrite/MainActivity.kt (limited to 'android/app/src/main/java/com/owynlauncherrewrite/MainActivity.kt') diff --git a/android/app/src/main/java/com/owynlauncherrewrite/MainActivity.kt b/android/app/src/main/java/com/owynlauncherrewrite/MainActivity.kt new file mode 100644 index 0000000..c784bb9 --- /dev/null +++ b/android/app/src/main/java/com/owynlauncherrewrite/MainActivity.kt @@ -0,0 +1,22 @@ +package com.owynlauncherrewrite + +import com.facebook.react.ReactActivity +import com.facebook.react.ReactActivityDelegate +import com.facebook.react.defaults.DefaultNewArchitectureEntryPoint.fabricEnabled +import com.facebook.react.defaults.DefaultReactActivityDelegate + +class MainActivity : ReactActivity() { + + /** + * Returns the name of the main component registered from JavaScript. This is used to schedule + * rendering of the component. + */ + override fun getMainComponentName(): String = "OwynLauncherRewrite" + + /** + * Returns the instance of the [ReactActivityDelegate]. We use [DefaultReactActivityDelegate] + * which allows you to enable New Architecture with a single boolean flags [fabricEnabled] + */ + override fun createReactActivityDelegate(): ReactActivityDelegate = + DefaultReactActivityDelegate(this, mainComponentName, fabricEnabled) +} -- cgit v1.3.1