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 checked for possible duplicate issues, with possible answers.
Bug summary
Invariant Violation: TurboModuleRegistry.getEnforcing(...): 'RNBootSplash' could not be found. Verify that a module by this name is registered in the native binary.
…I just installed the package and tried to run the project on Android
Reproducible sample code
android/app/build.gradleimplementation("androidx.core:core-splashscreen:1.0.0")AndroidManifest.xml<manifest xmlns:android="http://schemas.android.com/apk/res/android"><uses-permissionandroid:name="android.permission.INTERNET"/><application
android:name=".MainApplication"
android:label="@string/app_name"
android:icon="@mipmap/ic_launcher"
android:roundIcon="@mipmap/ic_launcher_round"
android:allowBackup="false"
android:theme="@style/AppTheme"
android:supportsRtl="true"><activityandroid:name=".MainActivity"android:label="@string/app_name"android:configChanges="keyboard|keyboardHidden|orientation|screenLayout|screenSize|smallestScreenSize|uiMode"android:launchMode="singleTask"android:windowSoftInputMode="adjustResize"android:exported="true"android:theme="@style/BootTheme"><intent-filter><actionandroid:name="android.intent.action.MAIN"/><categoryandroid:name="android.intent.category.LAUNCHER"/></intent-filter></activity></application>
</manifest>MainActivity.ktpackagecom.demoAppimportcom.facebook.react.ReactActivityimportcom.facebook.react.ReactActivityDelegateimportcom.facebook.react.defaults.DefaultNewArchitectureEntryPoint.fabricEnabledimportcom.facebook.react.defaults.DefaultReactActivityDelegateimportandroid.os.Bundleimportcom.zoontek.rnbootsplash.RNBootSplashclassMainActivity : ReactActivity(){overridefunonCreate(savedInstanceState: Bundle?){
RNBootSplash.init(this,R.style.BootTheme)// ⬅️ initialize the splash screensuper.onCreate(savedInstanceState)// super.onCreate(null) with react-native-screens}/** * Returns the name of the main component registered from JavaScript. This is used to schedule * rendering of the component. */overridefungetMainComponentName(): String="DemoApp"/** * Returns the instance of the [ReactActivityDelegate]. We use [DefaultReactActivityDelegate] * which allows you to enable New Architecture with a single boolean flags [fabricEnabled] */overridefuncreateReactActivityDelegate(): ReactActivityDelegate=DefaultReactActivityDelegate(this,mainComponentName,fabricEnabled)}
The text was updated successfully, but these errors were encountered:
Install and build it correctly. There's multiple duplicate everywhere on the internet explaining what could go wrong in your setup / what you could have missed.
Been trying to add expo into our existing app and I've been seeing these kind of issues in other repos, so I guess its more general (probably related to hermes: false + new arch: true)
Before submitting a new issue
Bug summary
Invariant Violation: TurboModuleRegistry.getEnforcing(...): 'RNBootSplash' could not be found. Verify that a module by this name is registered in the native binary.
Facing the above issue on react native 0.76.4
Library version
^6.3.2
Environment info
Steps to reproduce
Reproducible sample code
The text was updated successfully, but these errors were encountered: