Answers for "go back button react native"

1

go back react native navigation

onPress={() => { this.props.navigation.goBack()}}
Posted by: Guest on May-26-2021
0

go back button react native

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 "Javascript"

Browse Popular Code Answers by Language