cooperka / react-native-snackbar

:candy: Material Design "Snackbar" component for Android and iOS.
Other
815 stars 150 forks source link

Explicitly set fallback title color #125

Closed iRoachie closed 4 years ago

iRoachie commented 4 years ago

Currently, this lib will default to using android:textColor when no colour for the title is set.

As of react-native 0.60.0 (see diff https://react-native-community.github.io/upgrade-helper/?from=0.59.10&to=0.60.0) all react native apps will come with android:textColor set to black (#00000). This results in the default behaviour of the snackbar to have a black title.

66277092-8e688200-e867-11e9-9463-67fce5b4657f

Instead, we should explicitly set the title colour if no colour is passed in.