From f0c3d2f469c3a8fcbfc48242b30cfe9297d9946d Mon Sep 17 00:00:00 2001 From: Sergiu Gabura Date: Sat, 24 Feb 2018 21:24:56 +0000 Subject: [PATCH] Added missing 'from' --- docs/connecting-navigation-prop.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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.