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

RN 0.71.7 Manual Installation guides for all platforms are deprecated.

Open batuhanors opened this issue 2 years ago • 5 comments

I am trying to use this package on my "react-native": "0.71.7" application, however I am unable to install on both platforms. I am using latest version of the package which is 3.3.0

I installed on iOS thanks to this issue thread, however android problem still occurs.

In my app/Gradle Scripts/settings.gradle file I write: include ':react-native-splash-screen' project(':react-native-splash-screen').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-splash-screen/android')

In my android/app/build.gradle file I implement: ... dependencies { ... implementation project(':react-native-splash-screen') }

but, when I try to add 'import org.devio.rn.splashscreen.SplashScreen' command on both MainActivity.java and MainApplication.java file I encounter: "Cannot resolve symbol devio" error.

Show us the code you are using? Screenshot 2023-05-03 at 17 13 45

batuhanors avatar May 03 '23 14:05 batuhanors

Which issue thread? I am having trouble installing react native splash screen on 0.71.7

ucheNkadiCode avatar May 06 '23 20:05 ucheNkadiCode

Go the File in android studio and click on invalidate cache then rebuild the project

henrhie avatar May 18 '23 13:05 henrhie

@ucheNkadiCode @batuhanors where you able to get it working on Android .71?

skinsapp avatar Jun 12 '23 16:06 skinsapp

I'm also having this problem since upgrading from React Native 0.70.9 to 0.71.11. For what it's worth, I've tried the suggestion about invalidating the cache, but it unfortunately didn't help.

Update: I managed to get it working on 0.71.11 with the setup I've had for a while by re-adding import android.os.Bundle; to MainActivity.java. This was recently removed during the upgrade process (a step in the React Native Upgrade Helper IIRC).

darrylyoung avatar Jun 15 '23 12:06 darrylyoung

Our app is slightly old and I was migrating to RN 0.71.11 for some reason I had splashscreen v 3.0.0, and it is working, but I'm having other issue described here

LYevhen avatar Jul 07 '23 12:07 LYevhen