You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I use React Native version 0.75.2 and have implemented a react-native-splash-screen for local device development. On devices running Android 11, everything works fine. However, when testing on Android 14 during development, the app crashes with an error message after the splash screen appears and I click a button.
And this is the MainActivity.kt file code
package com.tenkan
import android.os.Bundle;
import com.facebook.react.ReactActivity
import com.facebook.react.ReactActivityDelegate
import com.facebook.react.defaults.DefaultNewArchitectureEntryPoint.fabricEnabled
import com.facebook.react.defaults.DefaultReactActivityDelegate
import org.devio.rn.splashscreen.SplashScreen
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 = "tenkan"
override fun onCreate(savedInstanceState: Bundle?) {
SplashScreen.show(this)
super.onCreate(savedInstanceState)
}
/**
* 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)
}
I use React Native version 0.75.2 and have implemented a react-native-splash-screen for local device development. On devices running Android 11, everything works fine. However, when testing on Android 14 during development, the app crashes with an error message after the splash screen appears and I click a button.
And this is the MainActivity.kt file code
launch_screen.xml code
The text was updated successfully, but these errors were encountered: