diff --git a/docs/connecting-navigation-prop.md b/docs/connecting-navigation-prop.md index c3c99ac4347..bae7137c4f9 100644 --- a/docs/connecting-navigation-prop.md +++ b/docs/connecting-navigation-prop.md @@ -8,7 +8,7 @@ sidebar_label: Access the navigation prop from any component ```javascript import React from 'react'; -import { Button } 'react-native'; +import { Button } from 'react-native'; import { withNavigation } from 'react-navigation'; export default class MyBackButton extends React.Component { @@ -26,7 +26,7 @@ Alternatively, you can use the `withNavigation` function to provide the `navigat ```js import React from 'react'; -import { Button } 'react-native'; +import { Button } from 'react-native'; import { withNavigation } from 'react-navigation'; class MyBackButton extends React.Component { @@ -40,4 +40,4 @@ class MyBackButton extends React.Component { export default withNavigation(MyBackButton); ``` -Using this approach, you can render `MyBackButton` anywhere in your app without passing in a `navigation` prop explicitly and it will work as expected. \ No newline at end of file +Using this approach, you can render `MyBackButton` anywhere in your app without passing in a `navigation` prop explicitly and it will work as expected.