Skip to content

A fully open source & end-to-end encrypted note taking alternative to Evernote.

load app in tablet mode

ammarahm-ed3d039ee31234
diff --git a/apps/mobile/index.tablet.js b/apps/mobile/index.tablet.js
index 6c3900d0a..bfeaadc26 100644
--- a/apps/mobile/index.tablet.js
+++ b/apps/mobile/index.tablet.js
@@ -1,9 +1,7 @@
import React, {createRef, useEffect, useState} from 'react';
import {Platform, StatusBar, View} from 'react-native';
-import * as Animatable from 'react-native-animatable';
-import {ScreenContainer} from 'react-native-screens';
+import ContextMenu from './src/components/ContextMenu';
import {DialogManager} from './src/components/DialogManager';
-import {Menu} from './src/components/Menu';
import {Toast} from './src/components/Toast';
import {useTracked} from './src/provider';
import {
@@ -18,21 +16,16 @@ import {
} from './src/services/events';
import {MainComponent, NavigationStack} from './src/services/Navigator';
import Editor from './src/views/Editor';
-const AnimatedScreenContainer = Animated.createAnimatedComponent(
- ScreenContainer,
-);
const editorRef = createRef();
let outColors;
export const Initialize = () => {
- const [state, dispatch] = useTracked();
- const {colors} = state;
return (
<>
<NavigationStack component={NavWrapper} />
+ <ContextMenu />
<Toast />
- <DialogManager colors={colors} />
</>
);
};
@@ -93,44 +86,36 @@ const NavWrapper = () => {
StatusBar.setBarStyle(colors.night ? 'light-content' : 'dark-content');
}, []);
return (
- <View
- style={{
- width: '100%',
- height: '100%',
- flexDirection: 'row',
- backgroundColor: colors.bg,
- }}>
- <Animatable.View
- animation="fadeIn"
- useNativeDriver={true}
- duration={500}
- delay={450}
- style={{
- width: '4%',
- }}>
- <Menu hide={false} noTextMode={true} colors={colors} />
- </Animatable.View>
+ <>
<View
style={{
- width: '28%',
+ width: '100%',
height: '100%',
- borderRightColor: colors.nav,
- borderRightWidth: 2,
+ flexDirection: 'row',
+ backgroundColor: colors.bg,
}}>
- <MainComponent />
- </View>
+ <View
+ style={{
+ width: '30%',
+ height: '100%',
+ borderRightColor: colors.nav,
+ borderRightWidth:1
+ }}>
+ <MainComponent />
+ </View>
- <AnimatedScreenContainer
- ref={editorRef}
- style={{
- width: '68%',
- height: '100%',
- backgroundColor: 'transparent',
- }}>
- <Screen>
+ <View
+ ref={editorRef}
+ style={{
+ width: '70%',
+ height: '100%',
+ backgroundColor: 'transparent',
+ paddingRight: 12,
+ }}>
<Editor noMenu={fullscreen ? false : true} />
- </Screen>
- </AnimatedScreenContainer>
- </View>
+ </View>
+ </View>
+ <DialogManager colors={colors} />
+ </>
);
};