I'm using the simple react native tab. The tab works fine but it shows the default blue color background of the tag. That means About Courses and Chat are in a row and getting blue color by default. How could I change it?Also, how could I change ' ' this heading font-family, text color, and others property?
<View style={{ backgroundColor: 'red' }}>
<Tabs tabStyle={{ backgroundColor: 'red' }}>
<Tab heading="About Test" tabStyle={{ color: 'red' }}>
<View>
<Text>Hi THis is from ABout</Text>
</View>
</Tab>
<Tab heading="Courses">
<Text>Hi this is from Courses</Text>
</Tab>
<Tab heading="Chat">
<Text>This is from Chat</Text>
</Tab>
</Tabs>
</View>
Change it like this
For
underline
styling just addto the
<Tabs tabBarUnderlineStyle={{ backgroundColor: 'dodgerblue' }} />
Also on Android I got to see that not setting
activeTextStyle
color shows no text..To fix this addFor removing border around the box
Add
tabContainerStyle={{ elevation: 0 }}
to<Tabs />
, like thisTo change Background Color of inside tabs space add
style={{ backgroundColor: 'grey' }}
to<Tab />
, like thisCheck working example here