HwangTaehyun / react-native-lottie-splash-screen

⚡ Lottie splash screen for your react native app!
MIT License
222 stars 62 forks source link

Is that possible add fade out animation between this splash screen and the next screen in IOS? #34

Open danielsousast opened 2 years ago

beeboopx commented 2 years ago

+1, this lib fading out works on Android (see <item name="android:windowExitAnimation">@android:anim/fade_out</item> in styles.xml) but not on iOS.

Fade Prop: https://github.com/zoontek/react-native-bootsplash#hide

Implementation of Fade on iOS: https://github.com/zoontek/react-native-bootsplash/blob/c070e86908a5a1b24d67874852cdd5ce5ddcc15d/ios/RNBootSplash.m#L98

^ could recommend similar feature as this library with 'fade' prop.

kirillkollex commented 1 year ago

Change this line to

                        [UIView animateWithDuration:0.2
                        animations:^{loadingView.alpha = 0.0;}
                        completion:^(BOOL finished){ [loadingView removeFromSuperview]; }];