Brandon Presley
514efc6467
This unfortunately has broken the unit tests. Will have to worry about fixing them later. Everything seems to be working other than that.
28 lines
1.0 KiB
Kotlin
28 lines
1.0 KiB
Kotlin
package com.massive
|
|
|
|
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? {
|
|
return "massive"
|
|
}
|
|
|
|
/**
|
|
* Returns the instance of the [ReactActivityDelegate]. Here we use a util class [ ] which allows you to easily enable Fabric and Concurrent React
|
|
* (aka React 18) with two boolean flags.
|
|
*/
|
|
override fun createReactActivityDelegate(): ReactActivityDelegate {
|
|
return DefaultReactActivityDelegate(
|
|
this,
|
|
mainComponentName!!, // If you opted-in for the New Architecture, we enable the Fabric Renderer.
|
|
fabricEnabled
|
|
)
|
|
}
|
|
} |