我们可以在wix RNN v2中同时使用两个布局吗?

时间:2018-11-27 09:51:12

标签: react-native react-native-navigation

我想在堆栈导航的特定屏幕中使用侧面菜单。 我如何才能将navigation.push到堆栈导航中的屏幕,并在React Native Navigation v2中具有侧面菜单。由于Navigation.push仅采用组件对象。

Navigation.setRoot({
  root: {
    stack: {
      id: 'App',
      children: [
        {
          component: {
            name: 'FormList',
            options: {
              topBar: {
                title: {
                  text: 'Forms'
                }
              }
            }
          }
        }
      ],
    }
  }
});
  

我想在CreateForm上推送一个带有侧面菜单的屏幕

const sidemenu = {
  sideMenu: {
      center: {
      component: {
        name: 'CreateForm',
          options: {
          topBar: {
            title: {
              text: 'Create Form'
            },
          },
        }
      },
    },
    right: {
      component: {
        name: 'CreateField',
          passProps: {
          text: ''
        },
      },
    },
  }
};

0 个答案:

没有答案
相关问题