Skip to content

Commit b173d9e

Browse files
authored
Merge pull request #266 from danieloprado/master
fix ios build and update docs
2 parents 2b96a49 + 7ca5314 commit b173d9e

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

README.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff 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

ios/RNSplashScreen.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ + (void) jsLoadError:(NSNotification*)notification
4949
}
5050

5151
RCT_EXPORT_METHOD(show) {
52-
[SplashScreen show];
52+
[RNSplashScreen show];
5353
}
5454

5555
@end

0 commit comments

Comments
 (0)