【发布时间】:2020-04-29 21:50:30
【问题描述】:
我有:
<PaperProvider theme={theme}>
<NavigationContainer>
<Tab.Navigator initialRouteName="Feed">
<Tab.Screen
name="Home"
component={Conversations}
options={{
tabBarLabel: "Home",
tabBarIcon: ({ color, size }) => (
<AntDesign name="home" size={size} color={color} />
),
}}
/>
<Tab.Screen
name="Explore"
component={Conversations}
options={{
tabBarLabel: "Explore",
tabBarIcon: ({ color, size }) => (
<AntDesign name="find" size={size} color={color} />
),
}}
/>
<Tab.Screen
name="Profile"
component={Conversations}
options={{
tabBarLabel: "Profile",
tabBarIcon: ({ color, size }) => (
<AntDesign name="setting" size={size} color={color} />
),
}}
/>
</Tab.Navigator>
</NavigationContainer>
</PaperProvider>;
它加载正常,但我无法滚动。我还使用react-native-web 尝试使其与网络兼容。
【问题讨论】:
-
您想滚动
Conversations组件吗?如果是这样,您能否添加一个示例?
标签: react-native expo react-navigation react-native-paper