瀏覽代碼

fix push params

Daniel Zlotin 6 年之前
父節點
當前提交
cb8a36f97f
共有 1 個檔案被更改,包括 5 行新增3 行删除
  1. 5
    3
      playground/src/screens/ModalScreen.js

+ 5
- 3
playground/src/screens/ModalScreen.js 查看文件

@@ -83,9 +83,11 @@ class ModalScreen extends Component {
83 83
 
84 84
   onClickPushScreen() {
85 85
     Navigation.push(this.props.containerId, {
86
-      name: `navigation.playground.PushedScreen`,
87
-      passProps: {
88
-        text: 'Pushed from modal'
86
+      component: {
87
+        name: `navigation.playground.PushedScreen`,
88
+        passProps: {
89
+          text: 'Pushed from modal'
90
+        }
89 91
       }
90 92
     });
91 93
   }