2

I upgraded react-native-navigation from v1 to v6. It used to be possible on v1 to use both react-native-spalsh-screen and react-native-navigation (on Android) – is it still possible? Not sure how to handle it on the MainActivity.java

(in the past, I made it extend SplashActivity (of com.reactnativenavigation.controllers.SplashActivity))

ofer2980
  • 464
  • 5
  • 26

1 Answers1

2

The Playground sets a splash screen in MainActivity. This is actually the best way to set a splash screen as it doesn't rely on React Native startup.

guy.gc
  • 3,359
  • 2
  • 24
  • 39
  • Thank you! So you mean I should just remove the `react-native-splash-screen` dependency? – ofer2980 Aug 09 '20 at 12:50
  • Yes exactly. Remove `react-native-splash-screen` as it's inferior to setting a splash screen in native. – guy.gc Sep 09 '20 at 05:04