You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

40 lines
1.0 KiB

5 months ago
  1. import React from 'react';
  2. import {Pressable, StyleProp, Text, View, ViewStyle} from 'react-native';
  3. import {Svg, Path} from 'react-native-svg';
  4. import {ColorScheme} from './Design';
  5. import { useRouter } from 'expo-router';
  6. const BackButton = (props: any) => (
  7. <Svg
  8. width={64}
  9. height={64}
  10. viewBox="0 0 64 64"
  11. xmlns="http://www.w3.org/2000/svg"
  12. {...props}>
  13. <Path
  14. fillRule="evenodd"
  15. clipRule="evenodd"
  16. d="M36.0002 38.3939L25.5862 27.9799L36.0002 17.5659L37.4142 18.9799L28.4142 27.9799L37.4142 36.9799L36.0002 38.3939Z"
  17. fill="white"
  18. fillOpacity={0.95}
  19. />
  20. </Svg>
  21. );
  22. // fill in logic for moving back later.
  23. export default function ENavButtons(props: {
  24. back?: boolean;
  25. style?: StyleProp<ViewStyle>,
  26. }) {
  27. const router = useRouter();
  28. return (
  29. <View
  30. style={[{
  31. paddingHorizontal: 0,
  32. margin:0,
  33. left:-24
  34. }]}>
  35. {props.back && <Pressable onPress={() => router.back()}><BackButton fill={ColorScheme.text[10]} /></Pressable>}
  36. </View>
  37. );
  38. }