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

ToolbarAndroid title and subtitle cannot be styled by StyleSheet

Open saidimu opened this issue 11 years ago • 2 comments

As per the documentation they can only be styled via props (titleColor and subtitleColor).

It appears only the toolbar's backgroundColor and height can be styled via StyleSheet.

saidimu avatar Sep 19 '15 03:09 saidimu

cc @foghina

andreicoman11 avatar Sep 22 '15 10:09 andreicoman11

I swear I started writing a comment on this at some point, but I can't find it.

Anyway, I'd say that this is by design. The toolbar's title and subtitle appearance (anything else than color) can only be customized via style resources (see setTitleTextAppearance), which can only be changed by recompiling the APK. Furthermore, we don't (and probably won't) have a mapping between StyleSheet and Android's TextAppearance.

If you need advanced control over the text appearance of your toolbar, you might want to implement the whole widget in JS.

foghina avatar Sep 24 '15 14:09 foghina