diff --git a/packages/react-navigation/docs/api/withNavigation.md b/packages/react-navigation/docs/api/withNavigation.md index 79c070f0..2fd92e23 100644 --- a/packages/react-navigation/docs/api/withNavigation.md +++ b/packages/react-navigation/docs/api/withNavigation.md @@ -14,4 +14,12 @@ const MyComponent = ({ to, navigation }) => ( ); const MyComponentWithNavigation = withNavigation(MyComponent); + + +// or use decorators: + +@withNavigation +export default class MainScreen extends Component { + ... +} ```