A fully open source & end-to-end encrypted note taking alternative to Evernote.
TypeScript asp-net-coredotnet-coreelectronfosshacktoberfestnote-managmentnote-takingnote-taking-appnotebooknotesnotes-appopen-sourceopensourceprivacyproductivityreactreact-nativereactjsself-hosted
fix share menu android
ammarahm-ed8eb597147894
diff --git a/apps/mobile/index.js b/apps/mobile/index.jsindex f61e4293e..5f0b3911a 100644--- a/apps/mobile/index.js+++ b/apps/mobile/index.js@@ -1,6 +1,6 @@import 'react-native-gesture-handler';import React from 'react';-import {AppRegistry} from 'react-native';+import {AppRegistry, Platform} from 'react-native';import {name as appName} from './app.json';import {enableScreens} from 'react-native-screens';import Notifications from './src/services/Notifications';@@ -30,10 +30,12 @@ AppRegistry.registerComponent(appName, () => AppProvider);const ShareProvider = () => {NotesnookShare = require('./share/index').default;- return (+ return Platform.OS === 'ios' ? (<SafeAreaProvider><NotesnookShare quicknote={false} /></SafeAreaProvider>+ ) : (+ <NotesnookShare quicknote={false} />);};diff --git a/apps/mobile/share/index.js b/apps/mobile/share/index.jsindex b0cc75a85..88cdd9342 100644--- a/apps/mobile/share/index.js+++ b/apps/mobile/share/index.js@@ -9,6 +9,7 @@ import {KeyboardAvoidingView,Platform,SafeAreaView,+ StatusBar,Text,TouchableOpacity,useWindowDimensions,@@ -135,7 +136,10 @@ const NotesnookShare = ({quicknote = false}) => {const webviewRef = useRef();const opacity = useValue(0);const translate = useValue(1000);- const insets = useSafeAreaInsets();+ const insets =+ Platform.OS === 'android'+ ? {top: StatusBar.currentHeight}+ : useSafeAreaInsets();const prevAnimation = useRef(null);const [showSearch, setShowSearch] = useState(false);@@ -381,7 +385,7 @@ const NotesnookShare = ({quicknote = false}) => {height: height,justifyContent: quicknote ? 'flex-start' : 'flex-end',opacity: Platform.OS !== 'ios' ? opacity : 1,- alignSelf:'center'+ alignSelf: 'center'}}>{quicknote && !showSearch ? (<View@@ -489,6 +493,7 @@ const NotesnookShare = ({quicknote = false}) => {paddingVertical: 25,backgroundColor: 'transparent',marginBottom: insets.top,+transform: [{translateY:@@ -578,7 +583,8 @@ const NotesnookShare = ({quicknote = false}) => {minHeight: 100,borderRadius: 10,...getElevation(quicknote ? 1 : 5),- backgroundColor: colors.bg+ backgroundColor: colors.bg,+ overflow: 'hidden'}}><Viewstyle={{diff --git a/apps/mobile/share/search.js b/apps/mobile/share/search.jsindex 8939e4d17..ad045a218 100644--- a/apps/mobile/share/search.js+++ b/apps/mobile/share/search.js@@ -1,4 +1,5 @@import React, {useEffect, useRef, useState} from 'react';+import { StatusBar } from 'react-native';import {ActivityIndicator,FlatList,@@ -25,7 +26,7 @@ export const Search = ({close, getKeyboardHeight, quicknote}) => {const notes = useRef(null);const timer = useRef(null);const inputRef = useRef();- const insets = useSafeAreaInsets();+ const insets = Platform.OS === "android" ? {top:StatusBar.currentHeight} : useSafeAreaInsets();const onSelectItem = async item => {setAppendNote(item);