add a little delay before hiding splash screen

This commit is contained in:
ammarahm-ed
2020-12-07 14:33:50 +05:00
parent 4014c5583b
commit 02dcef10d6

View File

@@ -29,6 +29,7 @@ import {
eOpenSideMenu,
} from './src/utils/Events';
import {editorRef, tabBarRef} from './src/utils/Refs';
import { sleep } from './src/utils/TimeUtils';
import {EditorWrapper} from './src/views/Editor/EditorWrapper';
import {getIntent, getNote, post} from './src/views/Editor/Functions';
@@ -198,7 +199,7 @@ const AppStack = React.memo(
if (!SettingsService.getApploaded()) {
eSendEvent('nointent');
}
SplashScreen.hide();
sleep(100).then(() => SplashScreen.hide() )
}
function setDeviceMode(current, size) {