ignitegym/src/screens/Exercise.tsx

22 lines
606 B
TypeScript

import { Center, Icon, Text, VStack } from '@gluestack-ui/themed';
import { useNavigation } from '@react-navigation/native';
import { ArrowLeft } from 'lucide-react-native';
import { TouchableOpacity } from 'react-native';
export function Exercise() {
const navigation = useNavigation();
function handleGoBack() {
navigation.goBack();
}
return (
<VStack flex={1}>
<VStack px="$8" bg="$gray600" pt="$12">
<TouchableOpacity onPress={handleGoBack}>
<Icon as={ArrowLeft} color="$green500" size="xl" />
</TouchableOpacity>
</VStack>
</VStack>
);
}