React-native-splash-screen: 'SplashScreen.h' file not found

Created on 21 Mar 2017  Â·  7Comments  Â·  Source: crazycodeboy/react-native-splash-screen

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?

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.

All 7 comments

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

import "SplashScreen.h"

and

import

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];

Was this page helpful?
0 / 5 - 0 ratings

Related issues

ijry picture ijry  Â·  5Comments

johndo31 picture johndo31  Â·  3Comments

MichelDiz picture MichelDiz  Â·  4Comments

arnsa picture arnsa  Â·  5Comments

luqingxuan picture luqingxuan  Â·  3Comments