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,4 +1,3 @@
1 1
 const cp = require('child_process');
2 2
 cp.execSync(`rm -rf node_modules/react-native-navigation/node_modules`);
3 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,7 +60,8 @@ export default class PushedScreen extends Component {
60 60
   onResetToPress() {
61 61
     this.props.navigator.resetTo({
62 62
       title: "New Root",
63
-      screen: "example.ThirdTabScreen"
63
+      screen: "example.StyledScreen",
64
+      animated: true
64 65
     });
65 66
   }
66 67
 }