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 bottom margins on iOS
ammarahm-ed65d2a4175f71
diff --git a/apps/mobile/src/components/ActionSheetComponent/ActionSheetWrapper.js b/apps/mobile/src/components/ActionSheetComponent/ActionSheetWrapper.jsindex 4bf7c0a17..618ec2721 100644--- a/apps/mobile/src/components/ActionSheetComponent/ActionSheetWrapper.js+++ b/apps/mobile/src/components/ActionSheetComponent/ActionSheetWrapper.js@@ -1,21 +1,21 @@-import React, {useEffect} from 'react';-import {Platform} from 'react-native';-import {useTracked} from '../../provider';-import {DDS} from '../../services/DeviceDetection';-import {hexToRGBA} from '../../utils/ColorUtils';+import React from 'react';+import { View } from 'react-native';+import { Platform } from 'react-native';import ActionSheet from 'react-native-actions-sheet';-import {GetPremium} from './GetPremium';-import {editing} from '../../utils';+import { useSafeAreaInsets } from 'react-native-safe-area-context';+import { useTracked } from '../../provider';+import { DDS } from '../../services/DeviceDetection';+import { editing } from '../../utils';+import { hexToRGBA } from '../../utils/ColorUtils';+import { sleep } from '../../utils/TimeUtils';import {- editorTitleInput,EditorWebView,- post,- textInput,++ textInput} from '../../views/Editor/Functions';-import {sleep} from '../../utils/TimeUtils';import tiny from '../../views/Editor/tiny/tiny';-import {focusEditor} from '../../views/Editor/tiny/toolbar/constants';-import {changeAppScale} from '../../utils/Animations';+import { focusEditor } from '../../views/Editor/tiny/toolbar/constants';+import { GetPremium } from './GetPremium';const ActionSheetWrapper = ({children,@@ -29,7 +29,7 @@ const ActionSheetWrapper = ({const {colors} = state;const largeTablet = DDS.isLargeTablet();const smallTablet = DDS.isTab;-+ const insets = useSafeAreaInsets();const style = React.useMemo(() => {return {width: largeTablet || smallTablet ? 500 : '100%',@@ -95,6 +95,7 @@ const ActionSheetWrapper = ({}onClose={_onClose}>{children}+ <View style={{height:Platform.OS === "ios" ? insets.bottom/2 : 0}}/></ActionSheet>);};diff --git a/apps/mobile/src/components/Menu/UserSection.js b/apps/mobile/src/components/Menu/UserSection.jsindex c0e2c5f4c..001e60153 100644--- a/apps/mobile/src/components/Menu/UserSection.js+++ b/apps/mobile/src/components/Menu/UserSection.js@@ -1,5 +1,7 @@import React from 'react';+import { Platform } from 'react-native';import {ActivityIndicator, TouchableOpacity, View} from 'react-native';+import { useSafeAreaInsets } from 'react-native-safe-area-context';import Icon from 'react-native-vector-icons/MaterialCommunityIcons';import {useTracked} from '../../provider';import {DDS} from '../../services/DeviceDetection';@@ -14,13 +16,14 @@ import {TimeSince} from './TimeSince';export const UserSection = ({noTextMode}) => {const [state] = useTracked();const {colors, syncing, user, lastSynced} = state;-+ const insets = useSafeAreaInsets();return (<Viewstyle={{width: '100%',alignSelf: 'center',backgroundColor: colors.nav,+ paddingBottom:Platform.OS === "ios" ? insets.bottom/2 : null}}><Viewstyle={{@@ -83,14 +86,14 @@ export const UserSection = ({noTextMode}) => {style={{marginRight: 5,}}- size={SIZE.xs}+ size={SIZE.sm}color={syncing ? colors.accent : colors.icon}>{syncing ? 'Syncing' : 'Synced '}{!syncing ? (lastSynced && lastSynced !== 'Never' ? (<TimeSince- style={{fontSize: SIZE.xs, color: colors.icon}}+ style={{fontSize: SIZE.sm, color: colors.icon}}time={lastSynced}/>) : (diff --git a/apps/mobile/src/components/RecoveryKeyDialog/index.js b/apps/mobile/src/components/RecoveryKeyDialog/index.jsindex e19f30389..608de5b34 100644--- a/apps/mobile/src/components/RecoveryKeyDialog/index.js+++ b/apps/mobile/src/components/RecoveryKeyDialog/index.js@@ -1,27 +1,23 @@-import React, {createRef} from 'react';-import {Clipboard, View} from 'react-native';+import React, { createRef } from 'react';+import { Clipboard, View } from 'react-native';import QRCode from 'react-native-qrcode-svg';import Share from 'react-native-share';-import Icon from 'react-native-vector-icons/MaterialCommunityIcons';-import {LOGO_BASE64} from '../../assets/images/assets';+import { LOGO_BASE64 } from '../../assets/images/assets';import {eSendEvent,eSubscribeEvent,eUnSubscribeEvent,- ToastEvent,+ ToastEvent} from '../../services/EventManager';-import {dWidth} from '../../utils';-import {db} from '../../utils/DB';-import {eOpenRecoveryKeyDialog, eOpenResultDialog} from '../../utils/Events';-import {SIZE} from '../../utils/SizeUtils';+import { eOpenRecoveryKeyDialog, eOpenResultDialog } from '../../utils/Events';+import { SIZE } from '../../utils/SizeUtils';import Storage from '../../utils/storage';-import {sleep} from '../../utils/TimeUtils';+import { sleep } from '../../utils/TimeUtils';import ActionSheetWrapper from '../ActionSheetComponent/ActionSheetWrapper';-import {Button} from '../Button';+import { Button } from '../Button';import DialogHeader from '../Dialog/dialog-header';import Seperator from '../Seperator';-import {Toast} from '../Toast';-import Heading from '../Typography/Heading';+import { Toast } from '../Toast';import Paragraph from '../Typography/Paragraph';let RNFetchBlob;@@ -56,7 +52,7 @@ class RecoveryKeyDialog extends React.Component {close = () => {if (this.tapCount === 0) {- ToastEvent.show('Tap one more time to confirm.', 'error', 'local');+ ToastEvent.show('Tap one more time to confirm.', 'success', 'local');this.tapCount++;return;}