react-native-tab-view icon indicating copy to clipboard operation
react-native-tab-view copied to clipboard

styling text label on a tab bar

Open ochanje210 opened this issue 10 years ago • 4 comments

It seems the texts automatically becomes capital letters even if they were small letters.. How do u keep the text labels small letter?

ochanje210 avatar Oct 20 '16 02:10 ochanje210

@ochanje210 You can use the renderLabel prop of <TabBarTop /> to return a react element.

e.g. - renderLabel={route => <Text style={{ margin: 8 }}>{route.title}</Text>}

satya164 avatar Oct 20 '16 04:10 satya164

@satya164 I appreciate your help!!

ochanje210 avatar Oct 20 '16 04:10 ochanje210

In the most recent version, it should be {route.route.title}

AndroidDoctorr avatar Aug 06 '19 04:08 AndroidDoctorr

In the most recent version, it should be {route.route.title}

Bless you :)

eriegz avatar Oct 04 '19 18:10 eriegz