File tree Expand file tree Collapse file tree 2 files changed +7
-7
lines changed Expand file tree Collapse file tree 2 files changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -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
@@ -264,10 +264,10 @@ export default class WelcomePage extends Component {
264264## API
265265
266266
267- Method | Type | Optional | Description
268- ----------------- | -------- | -------- | -----------
269- show() | function | false | Open splash screen (Native Method )
270- hide() | function | false | Close splash screen
267+ | Method | Type | Optional | Description |
268+ | --------| ---------- | ---------- | ------------------------------------- |
269+ | show() | function | false | Open splash screen (Native Method ) |
270+ | hide() | function | false | Close splash screen |
271271
272272## Testing
273273
Original file line number Diff line number Diff line change @@ -49,7 +49,7 @@ + (void) jsLoadError:(NSNotification*)notification
4949}
5050
5151RCT_EXPORT_METHOD (show) {
52- [SplashScreen show ];
52+ [RNSplashScreen show ];
5353}
5454
5555@end
You can’t perform that action at this time.
0 commit comments