Skip to content

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

fix minor ui bugs

ammarahm-edcc57cf39c94d
diff --git a/apps/mobile/App.js b/apps/mobile/App.js
index 8108feaf8..0e497c363 100644
--- a/apps/mobile/App.js
+++ b/apps/mobile/App.js
@@ -34,6 +34,7 @@ export const db = new Storage(StorageInterface);
let overlayViewRef;
let sideMenuRef;
let editorRef;
+let outColors;
const App = () => {
const [state, dispatch] = useTracked();
const {colors, loading} = state;
@@ -58,17 +59,22 @@ const App = () => {
const showFullScreenEditor = () => {
setFullscreen(true);
+
editorRef.setNativeProps({
style: {
position: 'absolute',
width: '100%',
zIndex: 999,
paddingHorizontal: 100,
- backgroundColor: colors.bg,
+ backgroundColor: outColors.bg,
},
});
};
+ useEffect(() => {
+ outColors = colors;
+ }, [colors]);
+
const closeFullScreenEditor = () => {
setFullscreen(false);
editorRef.setNativeProps({
diff --git a/apps/mobile/src/views/Editor/index.js b/apps/mobile/src/views/Editor/index.js
index 30079d280..ea6983005 100755
--- a/apps/mobile/src/views/Editor/index.js
+++ b/apps/mobile/src/views/Editor/index.js
@@ -417,8 +417,8 @@ const Editor = ({navigation, noMenu}) => {
}}
/>
)}
- cacheMode="LOAD_NO_CACHE"
- cacheEnabled={false}
+ cacheMode="LOAD_CACHE_ELSE_NETWORK"
+ cacheEnabled={true}
domStorageEnabled
scrollEnabled={false}
bounces={false}
@@ -504,7 +504,7 @@ const Editor = ({navigation, noMenu}) => {
duration={300}
style={{
flex: 1,
- backgroundColor: 'transparent',
+ backgroundColor: DDS.isTab ? 'transparent' : colors.bg,
height: '100%',
width: '100%',
flexDirection: 'row',
diff --git a/apps/mobile/src/views/Home/index.js b/apps/mobile/src/views/Home/index.js
index d374a6798..a0194ce44 100755
--- a/apps/mobile/src/views/Home/index.js
+++ b/apps/mobile/src/views/Home/index.js
@@ -18,7 +18,7 @@ export const AnimatedSafeAreaView = Animatable.createAnimatableComponent(
export const Home = ({navigation}) => {
const [state, dispatch] = useTracked();
- const {notes, colors, selectionMode, loading} = state;
+ const {notes} = state;
const isFocused = useIsFocused();