How to navigate from one page to another in react native?
Navigation is done in react native by this.props.navigation.navigate('Page Name on which you want to navigate where')
BY Best Interview Question ON 27 May 2021
Example
import React from 'react';
import { View,Text,Button } from 'react-native';
class HomePage extends React.Component{
render(){
return (
<view>
<text>Home Page</text>
<button onpress="{()=" title="Go to Detail page">this.props.navigation.navigate('Details')} ></button>
</view>
)
}
}