我想在本機反應中單擊標簽欄時更改標簽欄的顏色。我嘗試使用此代碼,但它顯示了我的 iPhone 上的標準顏色。我尋找解決方案,但沒有人在工作。更改 tabBarLabel 有效,但顏色無效。你可以幫幫我嗎?這是我的代碼:const Tab = createBottomTabNavigator();<Tab.Screen name="Settings" component={Settings} tabBarBadgeStyle={{backgroundColor: '#0000ff', color:'green'}} tabBarOptions={{ tabBarLabel: 'Test', style: { backgroundColor: 'orange'} }}/>
React Native Tabbar 顏色更改不起作用
jeck貓
2023-08-10 10:56:44