Skip to content

Commit 532b791

Browse files
committed
fix project
1 parent af6a50b commit 532b791

File tree

3 files changed

+5
-6
lines changed

3 files changed

+5
-6
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,4 +120,4 @@ AppRegistry.registerComponent('KitchenSink', () => KitchenSink);
120120

121121

122122
### methods
123-
- hide() hide SplashScreenÂ
123+
- hide() hide SplashScreen

android/build.gradle

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,5 +22,4 @@ dependencies {
2222
compile fileTree(dir: 'libs', include: ['*.jar'])
2323
compile 'com.android.support:appcompat-v7:23.0.1'
2424
compile 'com.facebook.react:react-native:0.13.+'
25-
compile project(':react-native-cordova')
2625
}

ios/CRTSplashScreen/CRTSplashScreen.m

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@ @implementation CRTSplashScreen
2020

2121
+ (void)show:(RCTRootView *)v {
2222
rootView = v;
23-
rootView.loadingViewFadeDelay = 1;
24-
rootView.loadingViewFadeDuration = 0.5;
23+
rootView.loadingViewFadeDelay = 0.1;
24+
rootView.loadingViewFadeDuration = 0.1;
2525
UIImageView *view = [[UIImageView alloc]initWithFrame:[UIScreen mainScreen].bounds];
2626
view.image = [UIImage imageNamed:@"splash"];
2727

@@ -35,11 +35,11 @@ + (void)show:(RCTRootView *)v {
3535
if (!rootView) {
3636
return;
3737
}
38-
dispatch_after(dispatch_time(DISPATCH_TIME_NOW, (int64_t)(0.5 * NSEC_PER_SEC)),
38+
dispatch_after(dispatch_time(DISPATCH_TIME_NOW, (int64_t)(rootView.loadingViewFadeDuration * NSEC_PER_SEC)),
3939
dispatch_get_main_queue(),
4040
^{
4141
[UIView transitionWithView: rootView
42-
duration:1
42+
duration:rootView.loadingViewFadeDelay
4343
options:UIViewAnimationOptionTransitionCrossDissolve
4444
animations:^{
4545
rootView.loadingView.hidden = YES;

0 commit comments

Comments
 (0)