laconic-wallet/android/app/src/main/java/com/laconic_wallet/MainActivity.kt
shreerang6921 5189e8f051
Create a basic react native app (#2)
Co-authored-by: IshaVenikar <ishavenikar7@gmail.com>
2024-02-05 17:18:18 +05:30

23 lines
859 B
Kotlin

package com.laconic_wallet
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 = "laconic_wallet"
/**
* 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)
}