react-native-splash-screen icon indicating copy to clipboard operation
react-native-splash-screen copied to clipboard

It doesn't work on android rn 0.71

Open Odkhuu17 opened this issue 3 years ago • 4 comments

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 ); } }

Odkhuu17 avatar Jan 16 '23 10:01 Odkhuu17

Yes its have some issue with react native .71

Imtayaz avatar Jan 16 '23 12:01 Imtayaz

no splash ios not woking same

ko-devHong avatar Jan 19 '23 08:01 ko-devHong

@Odkhuu17 @Imtayaz were you able to get it working on .71?

skinsapp avatar Jun 12 '23 16:06 skinsapp

@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: image

Besides this one thing I've followed the guide.

unstoo avatar Jul 28 '23 23:07 unstoo