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
update
ammarahm-eda25b76a6ecfa
diff --git a/apps/mobile/src/components/Container/index.js b/apps/mobile/src/components/Container/index.jsindex ecb098223..9714dcdfb 100644--- a/apps/mobile/src/components/Container/index.js+++ b/apps/mobile/src/components/Container/index.js@@ -21,6 +21,7 @@ import {Header} from '../header';import {Search} from '../SearchInput';import SelectionHeader from '../SelectionHeader';import {inputRef} from '../../utils/refs';+import {useSafeArea} from 'react-native-safe-area-context';const AnimatedTouchableOpacity = Animatable.createAnimatableComponent(TouchableOpacity,@@ -54,7 +55,7 @@ export const Container = ({const [text, setText] = useState('');const [hideHeader, setHideHeader] = useState(false);const [buttonHide, setButtonHide] = useState(false);-+ const insets = useSafeArea();let offsetY = 0;let countUp = 1;let countDown = 0;@@ -191,7 +192,7 @@ export const Container = ({style={{height: '100%',backgroundColor: colors.bg,- paddingTop: StatusBar.currentHeight,+ paddingTop: insets.top,}}>{noSelectionHeader ? null : <SelectionHeader items={data} />}@@ -250,6 +251,7 @@ export const Container = ({opacity: buttonHide ? 0 : 1,position: 'absolute',paddingHorizontal: 12,+ bottom: insets.bottom + 20,zIndex: 10,transform: [{diff --git a/apps/mobile/src/components/header/index.js b/apps/mobile/src/components/header/index.jsindex 7f7fde8ce..709d86315 100644--- a/apps/mobile/src/components/header/index.js+++ b/apps/mobile/src/components/header/index.js@@ -12,6 +12,7 @@ import Menu, {MenuItem, MenuDivider} from 'react-native-material-menu';import {ACTIONS} from '../../provider/actions';import {sideMenuRef} from '../../utils/refs';import {moveNoteHideEvent} from '../DialogManager/recievers';+import {useSafeArea} from 'react-native-safe-area-context';const menuRef = createRef();export const Header = ({heading,@@ -27,6 +28,7 @@ export const Header = ({}) => {const [state, dispatch] = useTracked();const {colors} = state;+ const insets = useSafeArea();return (<View@@ -36,10 +38,10 @@ export const Header = ({height: 50,marginTop:Platform.OS === 'ios'- ? 0+ ? insets.top: preventDefaultMargins || isLoginNavigator? 0- : StatusBar.currentHeight,+ : insets.top,marginBottom: 10,justifyContent: 'space-between',alignItems: 'center',