Browse Source

fixed example

Daniel Zlotin 7 years ago
parent
commit
96df3e60bc
2 changed files with 2 additions and 2 deletions
  1. 0
    1
      example/scripts/postinstall.js
  2. 2
    1
      example/src/screens/PushedScreen.js

+ 0
- 1
example/scripts/postinstall.js View File

1
 const cp = require('child_process');
1
 const cp = require('child_process');
2
 cp.execSync(`rm -rf node_modules/react-native-navigation/node_modules`);
2
 cp.execSync(`rm -rf node_modules/react-native-navigation/node_modules`);
3
 cp.execSync(`rm -rf node_modules/react-native-navigation/example `);
3
 cp.execSync(`rm -rf node_modules/react-native-navigation/example `);
4
-cp.execSync(`rm -rf yarn.lock`);

+ 2
- 1
example/src/screens/PushedScreen.js View File

60
   onResetToPress() {
60
   onResetToPress() {
61
     this.props.navigator.resetTo({
61
     this.props.navigator.resetTo({
62
       title: "New Root",
62
       title: "New Root",
63
-      screen: "example.ThirdTabScreen"
63
+      screen: "example.StyledScreen",
64
+      animated: true
64
     });
65
     });
65
   }
66
   }
66
 }
67
 }