We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a9a7f00 commit 8db490fCopy full SHA for 8db490f
packages/react-router-native/Link.js
@@ -3,7 +3,7 @@ import { TouchableHighlight } from 'react-native'
3
4
class Link extends Component {
5
static contextTypes = {
6
- router: React.PropTypes.object
+ history: React.PropTypes.object
7
}
8
9
static propTypes = {
@@ -21,13 +21,13 @@ class Link extends Component {
21
22
23
handlePress = () => {
24
- const { router } = this.context
+ const { history } = this.context
25
const { to, replace } = this.props
26
27
if (replace) {
28
- router.replace(to)
+ history.replace(to)
29
} else {
30
- router.push(to)
+ history.push(to)
31
32
33
0 commit comments