diff --git a/docs/navigation.md b/docs/navigation.md index 101acb85779..ab4b6f797c2 100644 --- a/docs/navigation.md +++ b/docs/navigation.md @@ -100,19 +100,30 @@ You can set options such as the screen title for each screen in the `options` pr Each screen takes a `component` prop that is a React component. Those components receive a prop called `navigation` which has various methods to link to other screens. For example, you can use `navigation.navigate` to go to the `Profile` screen: ```tsx +import { Button } from "react-native"; + const HomeScreen = ({navigation}) => { - return ( -