react-native-dynamic-splash
react-native-dynamic-splash copied to clipboard
hide doesn't work...
When I set autoHide = false, and use hide() in js, it dosen't work. Then I try to set autoHide = 6000 and use hide() in js, it dosen't work as well. The SplashScreen hide after autoHide ended.
i try change RNDynamicSplash.m (for iOS)
@interface RNDynamicSplash() {
RCTRootView *_rootView;
NSString *_fileName;
NSString *_userDefaultsKey;
NSString *_docsdir;
SplashConfig *_config;
}
to
static RCTRootView *_rootView;
@interface SplashBridge() {
NSString *_fileName;
NSString *_userDefaultsKey;
NSString *_docsdir;
SplashConfig *_config;
}
hide() in js is working now.