It doesn't work on android rn 0.71
It works on ios but doesnt work on android This is my MainActivity.java file
package com.myproject;
import android.os.Bundle;
import com.facebook.react.ReactActivity; import com.facebook.react.ReactActivityDelegate; import com.facebook.react.defaults.DefaultNewArchitectureEntryPoint; import com.facebook.react.defaults.DefaultReactActivityDelegate;
import org.devio.rn.splashscreen.SplashScreen;
public class MainActivity extends ReactActivity { @Override protected String getMainComponentName() { return "myproject"; }
@Override protected void onCreate(Bundle savedInstanceState) { SplashScreen.show(this); super.onCreate(savedInstanceState); }
@Override protected ReactActivityDelegate createReactActivityDelegate() { return new DefaultReactActivityDelegate( this, getMainComponentName(), DefaultNewArchitectureEntryPoint.getFabricEnabled(), // fabricEnabled DefaultNewArchitectureEntryPoint.getConcurrentReactEnabled() // concurrentRootEnabled ); } }
Yes its have some issue with react native .71
no splash ios not woking same
@Odkhuu17 @Imtayaz were you able to get it working on .71?
@Odkhuu17 What about your MainApplication.java file? I was able to make the splash screen work on RN .72 by not making any changes in this method:
Besides this one thing I've followed the guide.