Update withNavigation.md (#2988)

This commit is contained in:
Vojtech Novak
2017-11-17 00:03:27 +01:00
committed by GitHub
parent 24a3a79996
commit 65f44ae003

View File

@@ -14,4 +14,12 @@ const MyComponent = ({ to, navigation }) => (
);
const MyComponentWithNavigation = withNavigation(MyComponent);
// or use decorators:
@withNavigation
export default class MainScreen extends Component {
...
}
```