react-native-dynamic-splash icon indicating copy to clipboard operation
react-native-dynamic-splash copied to clipboard

hide doesn't work...

Open saigyouyou opened this issue 6 years ago • 1 comments

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.

saigyouyou avatar Aug 12 '19 13:08 saigyouyou

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.

jackyruslylemonilo avatar Jun 25 '20 05:06 jackyruslylemonilo