refactoring

This commit is contained in:
ammarahm-ed
2020-01-07 16:26:30 +05:00
parent c8d947d656
commit ff9cbdf4af
19 changed files with 845 additions and 1527 deletions

View File

@@ -64,6 +64,7 @@ export const Menu = ({close = () => {}, hide, update = () => {}}) => {
func: () =>
NavigationService.push('Folders', {
title: 'Notebooks',
canGoBack: false,
}),
close: true,
},
@@ -119,7 +120,7 @@ export const Menu = ({close = () => {}, hide, update = () => {}}) => {
keyExtractor={(item, index) => item.name}
renderItem={({item, index}) => (
<TouchableOpacity
activeOpacity={opacity}
activeOpacity={opacity / 2}
onPress={() => {
item.close === false ? null : close();
@@ -170,6 +171,7 @@ export const Menu = ({close = () => {}, hide, update = () => {}}) => {
/>
<TouchableOpacity
activeOpacity={opacity / 2}
onPress={() => {
close();
NavigationService.navigate('Tags');
@@ -225,6 +227,7 @@ export const Menu = ({close = () => {}, hide, update = () => {}}) => {
'water',
].map(item => (
<TouchableOpacity
activeOpacity={opacity / 2}
onPress={() => {
close();
NavigationService.navigate('Notes', {
@@ -260,6 +263,7 @@ export const Menu = ({close = () => {}, hide, update = () => {}}) => {
{['red', 'yellow', 'green', 'blue', 'purple', 'orange', 'gray'].map(
item => (
<TouchableOpacity
activeOpacity={opacity / 2}
style={{
flexDirection: 'row',
justifyContent: 'flex-start',
@@ -329,7 +333,7 @@ export const Menu = ({close = () => {}, hide, update = () => {}}) => {
NavigationService.navigate('Login');
}}
activeOpacity={opacity}
activeOpacity={opacity / 2}
style={{
paddingVertical: pv + 5,