Ver código fonte

fixed example

Daniel Zlotin 8 anos atrás
pai
commit
96df3e60bc

+ 0
- 1
example/scripts/postinstall.js Ver arquivo

@@ -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 Ver arquivo

@@ -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
 }