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();
}}
/>
);
}
Also in JavaScript:
- how to instialise var in js
- capitalize first letter of each word javascript
- ckeditor inline editor example
- element clicked js
- jquery slow
- jquery visibility effects
- convert array object to string javascript
- react router history push parameter
- create json api online
- escaped json to json javascript
- spinner react native
- transition event listener does not work
- hide and show in angular 8
- how to check if browser is firefox in javascript
- js if else
- react Spread Attributes conditionally
- javascript boolean
- js when key is pressed
- time stamp to date js
- postgresql json array contains
- npm ERR! Unexpected end of JSON input while parsing near '...ty":"sha512-2GTXt3b2Q'
- elements under p5 canvas
- javascript get clock time in auto counter up
- Javascript check for hash in URL