Closed sibelius closed 7 years ago
Having the same problem
Merged #53 and released as v5.2
thank you @mehcode
@mehcode Thanks
Hi I have this problem on rn-splash-screen v5.2 and react-native 48.4 I guess you should open this issue again.
@sinapcs Yeah me too in 0.48.0
@yasicmd I solved the problem. The project I'm working on it was using previous versions of rn-splash-screen and it had some extra codes in MainActivity.java
// After react is initialized; set our background color (override splash screen theme)
getReactNativeHost().getReactInstanceManager().addReactInstanceEventListener(new ReactInstanceManager.ReactInstanceEventListener() {
@Override
public void onReactContextInitialized(ReactContext context) {
// Hide the native splash screen
getWindow().getDecorView().setBackgroundColor(Color.WHITE);
}
});
I removed this code and problem solved
@sinapcs Worked for me. thanks for the reply.
For others that might be landing here, my solution was related to having the "Perf Monitor" enabled, as per https://github.com/facebook/react-native/issues/16042#issuecomment-337183484. Try toggling off the Perf Monitor and see if it solves the issue.
react-native 48.1 rn-splash-screen 5.0.0
error here
https://github.com/mehcode/rn-splash-screen/blob/master/android/src/main/java/com/mehcode/reactnative/splashscreen/SplashScreen.java#L53