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
hide options from ActionSheet
ammarahm-ed94ae49ef1b09
diff --git a/apps/mobile/src/components/ActionSheetComponent/index.js b/apps/mobile/src/components/ActionSheetComponent/index.jsindex aeba91fe0..f84cb4576 100644--- a/apps/mobile/src/components/ActionSheetComponent/index.js+++ b/apps/mobile/src/components/ActionSheetComponent/index.js@@ -50,8 +50,8 @@ export const ActionSheetComponent = ({favorite: false,locked: false,content: {- text: '',- delta: {},+ text: null,+ delta: null,},dateCreated: null,},@@ -419,7 +419,8 @@ export const ActionSheetComponent = ({) : null;const _renderColumnItem = item =>- columnItems.includes(item.name) ? (+ (note.dateCreated && columnItems.includes(item.name)) ||+ item.name === 'Dark Mode' ? (<TouchableOpacitykey={item.name}activeOpacity={opacity}@@ -497,20 +498,35 @@ export const ActionSheetComponent = ({width: '100%',paddingHorizontal: 0,}}>- <View- style={{- width: '100%',- justifyContent: 'space-between',- alignItems: 'center',- paddingVertical: 10,- flexDirection: 'row',- borderBottomWidth: 1,- borderBottomColor: colors.nav,- }}>- {rowItemsData.map(_renderRowItem)}- </View>+ {!note.dateCreated ? (+ <Text+ style={{+ width: '100%',+ textAlign: 'center',+ marginVertical: 10,+ color: colors.icon,+ fontFamily: WEIGHT.regular,+ }}>+ Please start writing to save your note.+ </Text>+ ) : null}++ {note.dateCreated ? (+ <View+ style={{+ width: '100%',+ justifyContent: 'space-between',+ alignItems: 'center',+ paddingVertical: 10,+ flexDirection: 'row',+ borderBottomWidth: 1,+ borderBottomColor: colors.nav,+ }}>+ {rowItemsData.map(_renderRowItem)}+ </View>+ ) : null}- {hasColors ? (+ {hasColors && note.dateCreated ? (<Viewstyle={{flexDirection: 'row',@@ -527,7 +543,7 @@ export const ActionSheetComponent = ({</View>) : null}- {hasTags ? (+ {hasTags && note.dateCreated ? (<Viewstyle={{flexDirection: 'row',diff --git a/apps/mobile/src/views/Editor/index.js b/apps/mobile/src/views/Editor/index.jsindex 9d2e10afe..407543eb5 100755--- a/apps/mobile/src/views/Editor/index.js+++ b/apps/mobile/src/views/Editor/index.js@@ -450,11 +450,16 @@ const Editor = ({navigation, noMenu}) => {useEffect(() => {let handleBack;- if (!noMenu) {+ if (!noMenu && DDS.isTab) {handleBack = BackHandler.addEventListener('hardwareBackPress', () => {simpleDialogEvent(TEMPLATE_EXIT_FULLSCREEN());return true;});+ } else if (noMenu && !DDS.isTab) {+ handleBack = BackHandler.addEventListener('hardwareBackPress', () => {+ simpleDialogEvent(TEMPLATE_EXIT());+ return true;+ });} else {if (handleBack) {handleBack.remove();@@ -469,6 +474,7 @@ const Editor = ({navigation, noMenu}) => {}title = null;content = null;+ timestamp = null;timer = null;};}, [noMenu]);