Skip to content

Commit efd4907

Browse files
authored
Update installation guide after renaming iOS class
1 parent 2b96a49 commit efd4907

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ public class MainApplication extends Application implements ReactApplication {
9999
1. In XCode, in the project navigator, right click `Libraries``Add Files to [your project's name]`
100100
2. Go to `node_modules``react-native-splash-screen` and add `SplashScreen.xcodeproj`
101101
3. In XCode, in the project navigator, select your project. Add `libSplashScreen.a` to your project's `Build Phases``Link Binary With Libraries`
102-
4. To fix `'SplashScreen.h' file not found`, you have to select your project → Build Settings → Search Paths → Header Search Paths to add:
102+
4. To fix `'RNSplashScreen.h' file not found`, you have to select your project → Build Settings → Search Paths → Header Search Paths to add:
103103

104104
`$(SRCROOT)/../node_modules/react-native-splash-screen/ios`
105105

@@ -139,15 +139,15 @@ Update `AppDelegate.m` with the following additions:
139139

140140
#import <React/RCTBundleURLProvider.h>
141141
#import <React/RCTRootView.h>
142-
#import "SplashScreen.h" // here
142+
#import "RNSplashScreen.h" // here
143143

144144
@implementation AppDelegate
145145

146146
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
147147
{
148148
// ...other code
149149

150-
[SplashScreen show]; // here
150+
[RNSplashScreen show]; // here
151151
return YES;
152152
}
153153

0 commit comments

Comments
 (0)