Skip to content

Commit da85e92

Browse files
authored
Merge pull request react-navigation#69 from LastxTemplar/patch-1
Added missing 'from'
2 parents eb3c8f5 + f0c3d2f commit da85e92

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

docs/connecting-navigation-prop.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ sidebar_label: Access the navigation prop from any component
88

99
```javascript
1010
import React from 'react';
11-
import { Button } 'react-native';
11+
import { Button } from 'react-native';
1212
import { withNavigation } from 'react-navigation';
1313

1414
export default class MyBackButton extends React.Component {
@@ -26,7 +26,7 @@ Alternatively, you can use the `withNavigation` function to provide the `navigat
2626

2727
```js
2828
import React from 'react';
29-
import { Button } 'react-native';
29+
import { Button } from 'react-native';
3030
import { withNavigation } from 'react-navigation';
3131

3232
class MyBackButton extends React.Component {
@@ -40,4 +40,4 @@ class MyBackButton extends React.Component {
4040
export default withNavigation(MyBackButton);
4141
```
4242

43-
Using this approach, you can render `MyBackButton` anywhere in your app without passing in a `navigation` prop explicitly and it will work as expected.
43+
Using this approach, you can render `MyBackButton` anywhere in your app without passing in a `navigation` prop explicitly and it will work as expected.

0 commit comments

Comments
 (0)