下面是代碼:陣營原住民 - 天然鹼基頁腳不變色
// Bottom.js
<StyleProvider style={getTheme(commonColor)}>
<Footer>
<FooterTab>
<Button active>
<Icon active name="food" size={24} />
<Text active>Lunch Box</Text>
</Button>
<Button>
<Icon name="coins" size={24} />
<Text>Point</Text>
</Button>
<Button>
<Icon name="face" size={24} />
<Text>Profile</Text>
</Button>
</FooterTab>
</Footer>
</StyleProvider>
// commonColor.js
// Footer
footerHeight: 55,
footerDefaultBg: '#ffffff',
// FooterTab
tabBarTextColor: '#FFF',
tabBarTextSize: platform === 'ios' ? 14 : 16,
activeTab: platform === 'ios' ? '#007aff' : '#fff',
sTabBarActiveTextColor: '#007aff',
tabBarActiveTextColor: '#fff',
tabActiveBgColor: platform === 'ios' ? '#1569f4' : '#1569f4',
我已經嘗試過直接編輯FooterTab.js但沒有改變過。
渲染髮生的唯一變化是tabActiveBgColor: platform === 'ios' ? '#1569f4' : '#1569f4'
。我甚至不知道爲什麼只有這個代碼工作,我甚至沒有設置任何active
FooterTab
。
我期望的是當我設置激活按鈕和文本變白。
任何解決方案?
什麼版本的陣營和本地人娜提veBase你在嗎? –