By using Splash screen docs, it is not possible to make disappear the splash screen. the app got stuck behind showing the splash screen.
iOS native codes:
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
{
self.moduleName = @"ttttapp";
[RNSplashScreen show];
return [super application:application didFinishLaunchingWithOptions:launchOptions];
}
Android native codes:
public class MainActivity extends ReactActivity {
@Override
protected void onCreate(Bundle savedInstanceState) {
androidx.core.splashscreen.SplashScreen.installSplashScreen(this);
org.devio.rn.splashscreen.SplashScreen.show(this, true);
super.onCreate(savedInstanceState);
2
Answers
On the iOS
AppDelegate.m
file it should be like the following:On the Android
MainActivity.java
file should be like this:Reference: issue#606
I fix this by modifying my ApDelegate.mm file
from
to