CardView内的createMaterialTopTabNavigator?

如何将createMaterialTopTabNavigator放置在CardView中?

我要实现下面的屏幕快照中所示的设计

CardView内的createMaterialTopTabNavigator?

我不知道应该在哪里写createMaterialTopTabNavigator,应该在同一页面中写它还是应该在RootScreen中写它(存在多个导航器,例如:StackNavigator和BottomTabNavigator)

我应该如何创建它?

ljf3636989 回答:CardView内的createMaterialTopTabNavigator?

我在要添加标签组件的同一页面中创建了一个createMaterialTopTabNavigator


const HistoryTabs = (
  {
    UPoints: {
      screen: UPointsScreen,},MyPurchases: {
      screen: MyPurchasesScreen,{initialRouteName:'UPoints' }

);
const AppContainer = createAppContainer(HistoryTabs);

在渲染中,我叫

 <View style={{flex:1}}>
      <AppContainer/>
 </View>
本文链接:https://www.f2er.com/3167015.html

大家都在问