Skip to content

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

feat: add dropdown menu

ammarahm-ed2fa528cd0cb5
diff --git a/apps/mobile/App.js b/apps/mobile/App.js
index d15545352..d6d39626e 100644
--- a/apps/mobile/App.js
+++ b/apps/mobile/App.js
@@ -17,15 +17,16 @@ import ActionButton from 'react-native-action-button';
import Storage from 'notes-core/api/database';
import StorageInterface from './src/utils/storage';
import * as Animatable from 'react-native-animatable';
-import {h} from './src/utils/utils';
+import {h, w} from './src/utils/utils';
import {Toast} from './src/components/Toast';
import {Menu} from './src/components/Menu';
-
+import SideMenu from 'react-native-side-menu';
const App = () => {
const [colors, setColors] = useState(COLOR_SCHEME);
const [fab, setFab] = useState(true);
const [sidebar, setSidebar] = useState('30%');
-
+ const [isOpen, setOpen] = useState(false);
+ const [disableGestures, setDisableGesture] = useState(false);
useEffect(() => {
if (Platform.OS === 'android') {
StatusBar.setBackgroundColor('transparent');
@@ -41,6 +42,12 @@ const App = () => {
DeviceEventEmitter.addListener('closeSidebar', () => {
setSidebar('0%');
});
+ DeviceEventEmitter.addListener('disableGesture', () => {
+ setDisableGesture(true);
+ });
+ DeviceEventEmitter.addListener('enableGesture', () => {
+ setDisableGesture(false);
+ });
return () => {
DeviceEventEmitter.removeListener('openSidebar', () => {
@@ -49,6 +56,12 @@ const App = () => {
DeviceEventEmitter.removeListener('closeSidebar', () => {
setSidebar('0%');
});
+ DeviceEventEmitter.removeListener('disableGesture', () => {
+ setDisableGesture(true);
+ });
+ DeviceEventEmitter.removeListener('enableGesture', () => {
+ setDisableGesture(false);
+ });
};
}, []);
@@ -78,37 +91,56 @@ const App = () => {
flexDirection: 'row',
}}>
{Platform.isPad ? (
- <Animatable.View
- transition="width"
- duration={200}
- style={{
- width: sidebar,
- }}>
- <Menu
- colors={colors}
- close={() => {
- setSidebar('0%');
+ <>
+ <Animatable.View
+ transition="width"
+ duration={200}
+ style={{
+ width: sidebar,
+ }}>
+ <Menu
+ colors={colors}
+ close={() => {
+ setSidebar('0%');
+ }}
+ />{' '}
+ : undefined
+ </Animatable.View>
+ <AppContainer
+ style={{
+ width: Platform.isPad ? '70%' : '100%',
+ height: '100%',
+ }}
+ ref={navigatorRef => {
+ NavigationService.setTopLevelNavigator(navigatorRef);
}}
- />{' '}
- : undefined
- </Animatable.View>
+ />
+ </>
) : (
- undefined
+ <SideMenu
+ isOpen={isOpen}
+ disableGestures={disableGestures}
+ bounceBackOnOverdraw={false}
+ onChange={args => {
+ setOpen(args);
+ }}
+ menu={<Menu colors={colors} close={() => setOpen(false)} />}
+ openMenuOffset={w / 1.5}>
+ <AppContainer
+ style={{
+ width: Platform.isPad ? '70%' : '100%',
+ height: '100%',
+ }}
+ ref={navigatorRef => {
+ NavigationService.setTopLevelNavigator(navigatorRef);
+ }}
+ />
+ </SideMenu>
)}
- <AppContainer
- style={{
- width: Platform.isPad ? '70%' : '100%',
- height: '100%',
- }}
- ref={navigatorRef => {
- NavigationService.setTopLevelNavigator(navigatorRef);
- }}
- />
-
<Toast />
- {fab ? (
+ {/* {fab ? (
<ActionButton elevation={5} buttonColor={colors.accent}>
<ActionButton.Item
buttonColor="#9b59b6"
@@ -153,7 +185,7 @@ const App = () => {
</ActionButton>
) : (
undefined
- )}
+ )} */}
</View>
);
};
diff --git a/apps/mobile/src/components/Dialog/index.js b/apps/mobile/src/components/Dialog/index.js
new file mode 100644
index 000000000..75cd8bcbb
--- /dev/null
+++ b/apps/mobile/src/components/Dialog/index.js
@@ -0,0 +1,157 @@
+import React, {useEffect, useState, createRef} from 'react';
+import {
+ ScrollView,
+ View,
+ Text,
+ TouchableOpacity,
+ Dimensions,
+ Image,
+ SafeAreaView,
+ Platform,
+ Modal,
+} from 'react-native';
+import NavigationService from '../../services/NavigationService';
+import {
+ COLOR_SCHEME,
+ SIZE,
+ br,
+ ph,
+ pv,
+ opacity,
+ FONT,
+ WEIGHT,
+} from '../../common/common';
+import Icon from 'react-native-vector-icons/Feather';
+import {getElevation, h, w, timeSince} from '../../utils/utils';
+import {FlatList, TextInput} from 'react-native-gesture-handler';
+import {useForceUpdate} from '../../views/ListsEditor';
+
+export const Dialog = ({
+ title,
+ paragraph = null,
+ positiveText = 'Ok',
+ negativeText = 'Cancel',
+ icon = null,
+ visible,
+ close = () => {},
+ positivePress = () => {},
+}) => {
+ const [colors, setColors] = useState(COLOR_SCHEME);
+ const forceUpdate = useForceUpdate();
+
+ return (
+ <Modal
+ visible={visible}
+ transparent={true}
+ onRequestClose={() => (refs = [])}>
+ <View
+ style={{
+ width: '100%',
+ height: '100%',
+ backgroundColor: 'rgba(255,255,255,0.3)',
+ justifyContent: 'center',
+ alignItems: 'center',
+ }}>
+ <View
+ style={{
+ width: '80%',
+ maxHeight: 350,
+ elevation: 5,
+ borderRadius: 5,
+ backgroundColor: colors.bg,
+ paddingHorizontal: ph,
+ paddingVertical: pv,
+ }}>
+ <View
+ style={{
+ flexDirection: 'row',
+ justifyContent: 'center',
+ alignItems: 'center',
+ }}>
+ {icon ? (
+ <Icon name={icon} color={colors.accent} size={SIZE.lg} />
+ ) : null}
+
+ <Text
+ style={{
+ color: colors.accent,
+ fontFamily: WEIGHT.semibold,
+ marginLeft: 10,
+ fontSize: SIZE.lg,
+ marginTop: -5,
+ }}>
+ {title}
+ </Text>
+ </View>
+
+ {paragraph ? (
+ <Text
+ style={{
+ color: colors.icon,
+ fontFamily: WEIGHT.regular,
+ fontSize: SIZE.sm - 1,
+ textAlign: 'center',
+ marginTop: 10,
+ }}>
+ {paragraph}
+ </Text>
+ ) : null}
+
+ <View
+ style={{
+ justifyContent: 'space-between',
+ alignItems: 'center',
+ flexDirection: 'row',
+ marginTop: 20,
+ }}>
+ <TouchableOpacity
+ activeOpacity={opacity}
+ onPress={() => positivePress()}
+ style={{
+ paddingVertical: pv,
+ paddingHorizontal: ph,
+ borderRadius: 5,
+ width: '48%',
+ justifyContent: 'center',
+ alignItems: 'center',
+ borderColor: colors.accent,
+ backgroundColor: colors.accent,
+ borderWidth: 1,
+ }}>
+ <Text
+ style={{
+ fontFamily: WEIGHT.medium,
+ color: 'white',
+ fontSize: SIZE.sm,
+ }}>
+ {positiveText}
+ </Text>
+ </TouchableOpacity>
+
+ <TouchableOpacity
+ activeOpacity={opacity}
+ onPress={() => close()}
+ style={{
+ paddingVertical: pv,
+ paddingHorizontal: ph,
+ borderRadius: 5,
+ width: '48%',
+ justifyContent: 'center',
+ alignItems: 'center',
+ backgroundColor: '#f0f0f0',
+ }}>
+ <Text
+ style={{
+ fontFamily: WEIGHT.medium,
+ color: colors.icon,
+ fontSize: SIZE.sm,
+ }}>
+ {negativeText}
+ </Text>
+ </TouchableOpacity>
+ </View>
+ </View>
+ </View>
+ </Modal>
+ );
+};
diff --git a/apps/mobile/src/components/Menu/index.js b/apps/mobile/src/components/Menu/index.js
index efdaca2e0..e2678c657 100644
--- a/apps/mobile/src/components/Menu/index.js
+++ b/apps/mobile/src/components/Menu/index.js
@@ -4,8 +4,6 @@ import {
View,
Text,
TouchableOpacity,
- Dimensions,
- Image,
SafeAreaView,
Platform,
FlatList,
@@ -27,7 +25,7 @@ import Icon from 'react-native-vector-icons/Feather';
import {getElevation, w, h, Toast} from '../../utils/utils';
-export const Menu = ({colors, close}) => (
+export const Menu = ({colors, close = () => {}}) => (
<SafeAreaView
style={{
height: '100%',
@@ -98,6 +96,7 @@ export const Menu = ({colors, close}) => (
<TouchableOpacity
activeOpacity={opacity}
onPress={() => {
+ close();
item.func();
}}
style={{
diff --git a/apps/mobile/src/components/NoteItem/index.js b/apps/mobile/src/components/NoteItem/index.js
index c575838c2..d91a21b7d 100644
--- a/apps/mobile/src/components/NoteItem/index.js
+++ b/apps/mobile/src/components/NoteItem/index.js
@@ -1,4 +1,4 @@
-import React, {useState} from 'react';
+import React, {useState, createRef} from 'react';
import {
View,
Text,
@@ -21,14 +21,14 @@ import {
WEIGHT,
} from '../../common/common';
-import Icon from 'react-native-vector-icons/Ionicons';
+import Icon from 'react-native-vector-icons/Feather';
import {Reminder} from '../Reminder';
import {getElevation, timeSince} from '../../utils/utils';
import NavigationService from '../../services/NavigationService';
-
+import Menu, {MenuItem, MenuDivider} from 'react-native-material-menu';
const w = Dimensions.get('window').width;
const h = Dimensions.get('window').height;
-
+let setMenuRef = {};
const NoteItem = props => {
const [colors, setColors] = useState(COLOR_SCHEME);
const item = props.item;
@@ -102,15 +102,63 @@ const NoteItem = props => {
</>
</TouchableOpacity>
- <TouchableOpacity
+ <View
style={{
- width: '5%',
+ width: w * 0.05,
justifyContent: 'center',
minHeight: 70,
alignItems: 'center',
}}>
- <Icon name="md-more" size={SIZE.lg} color={colors.icon} />
- </TouchableOpacity>
+ <Menu
+ style={{
+ borderRadius: 5,
+ }}
+ ref={ref => (setMenuRef[props.index] = ref)}
+ button={
+ <TouchableOpacity
+ style={{
+ width: w * 0.05,
+ justifyContent: 'center',
+ minHeight: 70,
+ alignItems: 'center',
+ }}
+ onPress={() => setMenuRef[props.index].show()}>
+ <Icon name="more-vertical" size={SIZE.lg} color={colors.icon} />
+ </TouchableOpacity>
+ }>
+ <MenuItem
+ textStyle={{
+ color: colors.pri,
+ backgroundColor: colors.bg,
+ fontFamily: WEIGHT.regular,
+ fontSize: SIZE.sm,
+ }}>
+ <Icon name="star" size={SIZE.sm} color={colors.icon} />
+ {' '}Favourite
+ </MenuItem>
+ <MenuItem
+ textStyle={{
+ color: colors.pri,
+ backgroundColor: colors.bg,
+ fontFamily: WEIGHT.regular,
+ fontSize: SIZE.sm,
+ }}>
+ <Icon name="share" size={SIZE.sm} color={colors.icon} />
+ {' '}Share
+ </MenuItem>
+
+ <MenuItem
+ textStyle={{
+ color: colors.pri,
+ backgroundColor: colors.bg,
+ fontFamily: WEIGHT.regular,
+ fontSize: SIZE.sm,
+ }}>
+ <Icon name="trash" size={SIZE.sm} color={colors.icon} />
+ {' '}Delete
+ </MenuItem>
+ </Menu>
+ </View>
</View>
);
};
diff --git a/apps/mobile/src/components/Recents/index.js b/apps/mobile/src/components/Recents/index.js
index b38614718..07041df79 100644
--- a/apps/mobile/src/components/Recents/index.js
+++ b/apps/mobile/src/components/Recents/index.js
@@ -20,37 +20,13 @@ import {
WEIGHT,
} from '../../common/common';
-import Icon from 'react-native-vector-icons/Ionicons';
+import Icon from 'react-native-vector-icons/Feather';
import {Reminder} from '../Reminder';
import {getElevation} from '../../utils/utils';
import NoteItem from '../NoteItem';
import NavigationService from '../../services/NavigationService';
import {storage} from '../../../App';
-let blockdata = [
- {
- name: '',
- icon: 'md-add',
- func: () => {
- NavigationService.navigate('Editor');
- },
- },
- {
- name: 'All Notes',
- icon: 'md-create',
- func: () => {
- NavigationService.navigate('Reminders');
- },
- },
- {
- name: 'Lists',
- icon: 'ios-list',
- func: () => {
- NavigationService.navigate('Lists');
- },
- },
-];
-
export const RecentList = ({update}) => {
const [colors, setColors] = useState(COLOR_SCHEME);
const [notes, setNotes] = useState([]);
@@ -69,6 +45,9 @@ export const RecentList = ({update}) => {
<>
<FlatList
data={notes}
+ style={{
+ height: '100%',
+ }}
ListFooterComponent={
<View
style={{
@@ -86,92 +65,6 @@ export const RecentList = ({update}) => {
</Text>
</View>
}
- ListHeaderComponent={
- <>
- <ScrollView
- horizontal={true}
- style={{
- paddingHorizontal: Platform.isPad ? '2%' : '4%',
- }}
- showsHorizontalScrollIndicator={false}
- contentContainerStyle={{
- justifyContent: 'flex-start',
- alignItems: 'center',
- flexDirection: 'row',
- }}>
- {blockdata.map(item => (
- <TouchableOpacity
- onPress={item.func}
- activeOpacity={opacity}
- style={{
- width: 100,
- height: 100,
- borderRadius: br,
- backgroundColor:
- item.icon === 'md-add' ? colors.accent : 'white',
- justifyContent: 'center',
- alignItems: 'center',
- marginRight: 30,
- marginLeft: 5,
- marginVertical: 20,
- marginBottom: 20,
- borderWidth: 1.5,
- borderColor: '#f0f0f0',
- }}>
- <View
- style={{
- justifyContent: 'center',
- alignItems: 'center',
- }}>
- <Icon
- name={item.icon}
- color={item.icon === 'md-add' ? 'white' : colors.icon}
- size={SIZE.xxl}
- />
- {item.name !== '' ? (
- <Text
- style={{
- fontSize: SIZE.sm - 2,
- color: colors.icon,
- fontFamily: WEIGHT.regular,
- }}>
- {item.name}
- </Text>
- ) : (
- undefined
- )}
- </View>
- </TouchableOpacity>
- ))}
- </ScrollView>
- <TouchableOpacity
- style={{
- width: Platform.isPad ? '95%' : '90%',
- alignSelf: 'center',
- backgroundColor: colors.errorBg,
- padding: pv,
- borderRadius: 5,
- flexDirection: 'row',
- justifyContent: 'space-between',
- marginBottom: 10,
- }}>
- <Text
- style={{
- fontFamily: WEIGHT.bold,
- color: colors.errorText,
- }}>
- Sync is disabled
- </Text>
- <Text
- style={{
- fontFamily: WEIGHT.medium,
- color: colors.errorText,
- }}>
- Fix now
- </Text>
- </TouchableOpacity>
- </>
- }
renderItem={({item, index}) => <NoteItem item={item} index={index} />}
/>
</>
diff --git a/apps/mobile/src/utils/utils.js b/apps/mobile/src/utils/utils.js
index e779823ea..783bd2761 100755
--- a/apps/mobile/src/utils/utils.js
+++ b/apps/mobile/src/utils/utils.js
@@ -47,3 +47,18 @@ export const ToastEvent = {
DeviceEventEmitter.emit('hideToast', {message, type, duration, func});
},
};
+
+export const SideMenuEvent = {
+ open: () => {
+ DeviceEventEmitter.emit('openSidebar');
+ },
+ close: () => {
+ DeviceEventEmitter.emit('closeSidebar');
+ },
+ disable: () => {
+ DeviceEventEmitter.emit('disableGesture');
+ },
+ enable: () => {
+ DeviceEventEmitter.emit('enableGesture');
+ },
+};
diff --git a/apps/mobile/src/views/Editor/index.js b/apps/mobile/src/views/Editor/index.js
index 9bc1ebc4f..fdd9baec9 100755
--- a/apps/mobile/src/views/Editor/index.js
+++ b/apps/mobile/src/views/Editor/index.js
@@ -10,6 +10,7 @@ import {
KeyboardAvoidingView,
Dimensions,
TextInput,
+ BackHandler,
} from 'react-native';
import {
COLOR_SCHEME,
@@ -26,6 +27,8 @@ import Icon from 'react-native-vector-icons/Feather';
import {useForceUpdate} from '../ListsEditor';
import {NavigationEvents} from 'react-navigation';
import {storage} from '../../../App';
+import {SideMenuEvent} from '../../utils/utils';
+import {Dialog} from '../../components/Dialog';
const w = Dimensions.get('window').width;
const h = Dimensions.get('window').height;
@@ -39,7 +42,7 @@ const Editor = ({navigation}) => {
const [colors, setColors] = useState(COLOR_SCHEME);
const [keyboardHeight, setKeyboardHeight] = useState(0);
-
+ const [dialog, setDialog] = useState(false);
// VARIABLES
let updateInterval = null;
@@ -83,7 +86,7 @@ const Editor = ({navigation}) => {
}
};
- const _renderWebpage = () => {
+ const _renderEditor = () => {
return (
<KeyboardAvoidingView
behavior={Platform.OS === 'ios' ? 'padding' : null}
@@ -104,9 +107,10 @@ const Editor = ({navigation}) => {
<Icon
style={{
paddingRight: 10,
+ marginTop: 5,
}}
name="chevron-left"
- color={colors.pri}
+ color={colors.icon}
size={SIZE.xxl}
/>
@@ -115,7 +119,7 @@ const Editor = ({navigation}) => {
placeholder="Untitled Note"
placeholderTextColor={colors.icon}
style={{
- width: '90%',
+ width: '80%',
fontFamily: WEIGHT.bold,
fontSize: SIZE.xxl,
maxWidth: '90%',
@@ -126,6 +130,16 @@ const Editor = ({navigation}) => {
}}
onSubmitEditing={async () => await saveNote()}
/>
+
+ <Icon
+ style={{
+ paddingRight: 10,
+ marginTop: 5,
+ }}
+ name="more-vertical"
+ color={colors.icon}
+ size={SIZE.xxl}
+ />
</View>
<WebView
@@ -174,6 +188,18 @@ const Editor = ({navigation}) => {
};
// EFFECTS
+ useEffect(() => {
+ (timestamp = null), (content = null);
+ title = null;
+ }, []);
+
+ useEffect(() => {
+ BackHandler.addEventListener('hardwareBackPress', () => {
+ setDialog(true);
+
+ return true;
+ });
+ });
useEffect(() => {
if (navigation.state.params && navigation.state.params.note) {
@@ -221,14 +247,31 @@ const Editor = ({navigation}) => {
}, []);
useEffect(() => {
- DeviceEventEmitter.emit('closeSidebar');
+ SideMenuEvent.close();
+ SideMenuEvent.disable();
return () => {
- DeviceEventEmitter.emit('openSidebar');
+ SideMenuEvent.open();
+ SideMenuEvent.enable();
};
}, []);
return (
- <SafeAreaView style={{height: '100%'}}>{_renderWebpage()}</SafeAreaView>
+ <SafeAreaView style={{height: '100%'}}>
+ <Dialog
+ title="Close Editor"
+ visible={dialog}
+ icon="x"
+ paragraph="Are you sure you want to close editor?"
+ close={() => {
+ setDialog(false);
+ }}
+ positivePress={() => {
+ navigation.goBack();
+ setDialog(false);
+ }}
+ />
+ {_renderEditor()}
+ </SafeAreaView>
);
};
diff --git a/apps/mobile/src/views/Home/index.js b/apps/mobile/src/views/Home/index.js
index 352f4d91b..1fd516b91 100755
--- a/apps/mobile/src/views/Home/index.js
+++ b/apps/mobile/src/views/Home/index.js
@@ -1,7 +1,14 @@
import React, {useEffect, useState, createRef} from 'react';
-import {SafeAreaView, Platform, DeviceEventEmitter} from 'react-native';
-import {COLOR_SCHEME} from '../../common/common';
-import SideMenu from 'react-native-side-menu';
+import {
+ SafeAreaView,
+ Platform,
+ DeviceEventEmitter,
+ TouchableOpacity,
+ View,
+ KeyboardAvoidingView,
+ Text,
+} from 'react-native';
+import {COLOR_SCHEME, opacity, pv, br, SIZE, WEIGHT} from '../../common/common';
import {styles} from './styles';
import {Search} from '../../components/SearchInput';
import {RecentList} from '../../components/Recents';
@@ -10,12 +17,11 @@ import {Header} from '../../components/header';
import {NavigationEvents} from 'react-navigation';
import {NotesList} from '../../components/NotesList';
import {storage} from '../../../App';
-import {Menu} from '../../components/Menu';
-
+import Icon from 'react-native-vector-icons/Feather';
+import NavigationService from '../../services/NavigationService';
export const Home = ({navigation}) => {
const [loading, setLoading] = useState(true);
const [colors, setColors] = useState(COLOR_SCHEME);
- const [isOpen, setOpen] = useState(false);
const [hidden, setHidden] = useState(false);
const [text, setText] = useState('');
const [searchResults, setSearchResults] = useState([]);
@@ -47,7 +53,9 @@ export const Home = ({navigation}) => {
}
};
- const onFocus = () => {};
+ const onFocus = () => {
+ setHidden(false);
+ };
const clearSearch = () => {
setSearchResults([]);
@@ -56,38 +64,39 @@ export const Home = ({navigation}) => {
return Platform.isPad ? (
<SafeAreaView style={[styles.container]}>
- <NavigationEvents
- onWillFocus={() => {
- DeviceEventEmitter.emit('openSidebar');
- setUpdate(update + 1);
- }}
- />
- <Header colors={colors} heading="Home" canGoBack={false} />
+ <KeyboardAvoidingView>
+ <NavigationEvents
+ onWillFocus={() => {
+ DeviceEventEmitter.emit('openSidebar');
+ setUpdate(update + 1);
+ }}
+ />
+ <Header colors={colors} heading="Home" canGoBack={false} />
- <Search
- onChangeText={onChangeText}
- onSubmitEditing={onSubmitEditing}
- onBlur={onBlur}
- onFocus={onFocus}
- value={text}
- onClose={() => {
- setHidden(false);
- setText('');
- }}
- />
+ <Search
+ onChangeText={onChangeText}
+ onSubmitEditing={onSubmitEditing}
+ onBlur={onBlur}
+ onFocus={onFocus}
+ value={text}
+ onClose={() => {
+ setHidden(false);
+ setText('');
+ }}
+ />
- {hidden ? <NotesList keyword={text} /> : <RecentList />}
+ {hidden ? <NotesList keyword={text} /> : <RecentList />}
+ </KeyboardAvoidingView>
</SafeAreaView>
) : (
- <SideMenu
- isOpen={isOpen}
- bounceBackOnOverdraw={false}
- onChange={args => {
- setOpen(args);
- }}
- menu={<Menu colors={colors} close={() => setOpen(false)} />}
- openMenuOffset={w / 1.5}>
- <SafeAreaView style={styles.container}>
+ <SafeAreaView
+ style={{
+ height: '100%',
+ }}>
+ <KeyboardAvoidingView
+ style={{
+ height: '100%',
+ }}>
<NavigationEvents
onWillFocus={() => {
setUpdate(update + 1);
@@ -115,8 +124,42 @@ export const Home = ({navigation}) => {
) : (
<RecentList update={update} />
)}
- </SafeAreaView>
- </SideMenu>
+ <TouchableOpacity
+ onPress={() => {
+ NavigationService.navigate('Editor');
+ }}
+ activeOpacity={opacity}
+ style={{
+ width: '90%',
+ alignSelf: 'center',
+ borderRadius: br,
+ backgroundColor: colors.accent,
+ justifyContent: 'center',
+ alignItems: 'center',
+ marginBottom: 20,
+ }}>
+ <View
+ style={{
+ justifyContent: 'space-between',
+ alignItems: 'center',
+ flexDirection: 'row',
+ width: '100%',
+ padding: pv,
+ paddingVertical: pv + 5,
+ }}>
+ <Text
+ style={{
+ fontSize: SIZE.md,
+ color: 'white',
+ fontFamily: WEIGHT.bold,
+ }}>
+ Add a new note
+ </Text>
+ <Icon name="plus" color="white" size={SIZE.lg} />
+ </View>
+ </TouchableOpacity>
+ </KeyboardAvoidingView>
+ </SafeAreaView>
);
};