Answers for "react native navigation to new screen functional component"

0

react native navigation to new screen functional component

import * as React from 'react';
import { Button } from 'react-native';
import { useNavigation } from '@react-navigation/native';

function MyBackButton() {
  const navigation = useNavigation();

  return (
    <Button
      title="Back"
      onPress={() => {
        navigation.goBack();
      }}
    />
  );
}
Posted by: Guest on July-28-2020

Code answers related to "react native navigation to new screen functional component"

Code answers related to "Javascript"

Browse Popular Code Answers by Language