Initial commit
Generated by react-native@0.80.2
This commit is contained in:
commit
9829024b2c
54 changed files with 14242 additions and 0 deletions
22
android/app/src/main/java/com/rnplayground/MainActivity.kt
Normal file
22
android/app/src/main/java/com/rnplayground/MainActivity.kt
Normal file
|
@ -0,0 +1,22 @@
|
|||
package com.rnplayground
|
||||
|
||||
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 = "RNPlayground"
|
||||
|
||||
/**
|
||||
* 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)
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue