Browse Source

125 - Remove redundant import of Router

Elisa Cutrin 1 year ago
parent
commit
6ae5ad024f
1 changed files with 1 additions and 2 deletions
  1. 1 2
      screens/hello.js

+ 1 - 2
screens/hello.js

@@ -1,11 +1,10 @@
1 1
 import React from 'react';
2 2
 import { StyleSheet, Text, View, TouchableOpacity } from 'react-native';
3
-import Router from '../Router';
4 3
 
5 4
 export class Hello extends React.Component {
6 5
 
7 6
   onPressButton = () => {
8
-    this.props.navigator.push(Router.getRoute('world'));
7
+    this.props.navigator.push('world');
9 8
   };
10 9
 
11 10
   render() {