Skip to content

Commit 3c43764

Browse files
committed
updated usage for changed api
1 parent 4566cc3 commit 3c43764

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

README.md

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,12 @@ see [ReactNativeComponentDemos][0]
145145
import SplashScreen from 'react-native-smart-splash-screen'
146146
...
147147
componentDidMount () {
148-
SplashScreen.close(SplashScreen.animationType.scale, 850, 500)
148+
//SplashScreen.close(SplashScreen.animationType.scale, 850, 500)
149+
SplashScreen.close({
150+
animationType: SplashScreen.animationType.scale,
151+
duration: 850,
152+
delay: 500,
153+
})
149154
}
150155
...
151156

@@ -162,5 +167,5 @@ componentDidMount () {
162167

163168

164169
[0]: https://github.com/cyqresig/ReactNativeComponentDemos
165-
[1]: http://cyqresig.github.io/img/react-native-smart-splash-screen-preview-ios-v1.0.0.gif
166-
[2]: http://cyqresig.github.io/img/react-native-smart-splash-screen-preview-android-v1.0.3.gif
170+
[1]: http://cyqresig.github.io/img/react-native-smart-splash-screen-preview-ios-v2.3.0.gif
171+
[2]: http://cyqresig.github.io/img/react-native-smart-splash-screen-preview-android-v2.3.0.gif

0 commit comments

Comments
 (0)