React Native导航侧菜单抽屉

时间:2020-06-29 10:34:24

标签: react-native react-redux react-native-navigation side-menu react-native-navigation-v2

如何使用 react-native-navigation v6.7.1在React Native应用中实现侧边菜单抽屉

下面是主文件的代码段。

  Navigation.setRoot({
    root: {
      stack: {
        id: 'centerScreen',
        children: [
          {
            component: {
              name: routes.about,
            }
          }
        ]
      }
    },
    layout: {
      orientation: ["portrait"]
    }
  });
});```

0 个答案:

没有答案