<Tab.Screen
name="Sheet"
children={()=><SheetScreen fiveElements={fiveElements}/>}
options={{
tabBarLabel: 'Sheet',
tabBarIcon: ({ color, size }) => (
<MaterialCommunityIcons name="information-outline" color={color} size={size} />
),
}}
/>
如果fiveElements状态没有变化,为什么我的选项卡屏幕会重新呈现?
1条答案
按热度按时间dzjeubhm1#
最好是这样使用屏幕: