2017-05-05 115 views

回答

0

在這種情況下,嘗試通過回調到renderLabel財產在你TabView像這樣:

_renderLabel = (scene) => { 
 
    const myStyle = { /* Defined your style here.. */ } 
 
    // grab the label from the scene. I'm not really sure 
 
    // about the structure of scene, but you can see it using console.log 
 
    const label = scene.label 
 

 
    return (
 
    <Text style={myStyle}>{label}</Text> 
 
); 
 
} 
 

 
_renderHeader =() => { 
 
    return <TabBar renderLabel={this._renderLabel} /> 
 
}

+0

真是對不起我的意思是問你這個(編輯問題).. ..有沒有辦法改變標籤變化的文字顏色 –

相關問題