Update withNavigation.md (#2988)

This commit is contained in:
Vojtech Novak
2017-11-17 00:03:27 +01:00
parent bd9ed90fb2
commit e896c686b2

View File

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