I followed the installation instruction. The library was successfully linked with react-native link
The SplashScreen is now added to the Libraries folder in Xcode.
If I try to import the library with:
#import "SplashScreen.h"
or
#import <SplashScreen.h>
I get this error:
xxx/AppDelegate.m:14:9: 'SplashScreen.h' file not found
Did I forgot something?
To fix 'SplashScreen.h' file not found, you have to select your project → Build Settings → Search Paths → Header Search Paths to add:
$(SRCROOT)/../node_modules/react-native-splash-screen/ios
Thank you! I thought linking is enough..
what is the difference between
and
This doens't seem to work an longer
Tried with select your project → Build Settings → Search Paths → Header Search Paths to add:
$(SRCROOT)/../node_modules/react-native-splash-screen/ios
But still it is not working anymore.
RN version : 0.55.4
React: 16.3.1
Can anyone help please
It looks like SplashScreen.h was renamed to RNSplashScreen.h for your import.
There's also a typo in the export within RNSplashScreen.h itself.
@kevinhaugen is right In RNSplashScreen.m change line 52 to this [RNSplashScreen show];
Most helpful comment
It looks like SplashScreen.h was renamed to RNSplashScreen.h for your import.
There's also a typo in the export within RNSplashScreen.h itself.