Add tag editing

Signed-off-by: Nikolaos Karaolidis <nick@karaolidis.com>
This commit is contained in:
2023-07-19 13:18:33 +03:00
parent 6e1f7bd81f
commit 85732e247a
11 changed files with 93 additions and 42 deletions

View File

@@ -4,6 +4,7 @@ import { FAB } from 'react-native-paper';
import { ParamListBase, useNavigation } from '@react-navigation/native';
import { NativeStackNavigationProp } from '@react-navigation/native-stack';
import { useDimensions } from '../contexts';
import { ROUTE } from '../types';
const FloatingActionButton = ({ visible = true }: { visible?: boolean }) => {
const { navigate } =
@@ -38,22 +39,22 @@ const FloatingActionButton = ({ visible = true }: { visible?: boolean }) => {
{
icon: 'tag',
label: 'Tag',
onPress: () => navigate('Add Tag'),
onPress: () => navigate(ROUTE.EDIT_TAG),
},
{
icon: 'note-text',
label: 'Text',
onPress: () => navigate('Add Meme'),
onPress: () => navigate(ROUTE.EDIT_MEME),
},
{
icon: 'image-album',
label: 'Album',
onPress: () => navigate('Add Meme'),
onPress: () => navigate(ROUTE.EDIT_MEME),
},
]}
onStateChange={({ open }) => setState(open)}
onPress={() => {
if (state) navigate('Add Meme');
if (state) navigate(ROUTE.EDIT_MEME);
}}
style={{
paddingBottom: responsive.verticalScale(75),