reduce delay in capturing intent and loading app

This commit is contained in:
ammarahm-ed
2020-12-22 12:38:31 +05:00
parent f9585dc995
commit 436bafa7b8
8 changed files with 51 additions and 61 deletions

View File

@@ -55,11 +55,20 @@ const onChangeTab = async (obj) => {
export const RootView = () => {
const [state] = useTracked();
const {colors} = state;
const {colors, intentMode} = state;
return (
<>
<NavigationStack component={AppStack} />
{intentMode ? (
<EditorWrapper
dimensions={{
width: '100%',
height: '100%',
}}
/>
) : (
<NavigationStack component={AppStack} />
)}
<Toast />
<ContextMenu />
<DummyText />