prince8verma / react-native-snackbar

Snackbars are used for displaying a brief message to the user, along with an optional action. Its a simple React-native library, works for both Android and IOS. It doesnt use any module under the hood . A minimalist snackbar implementation .
MIT License
6 stars 8 forks source link

Font-family(Roboto-medium) issue on iOS, on android is working perfect. #3

Open Tejas-narola opened 6 years ago

Tejas-narola commented 6 years ago

react-native version: 0.54.0

We have facing Roboto-medium font-family issue on particular ios, It's fine working for andorid. any idea how to solve this error ?

Advanced Thanks,

prince-verma commented 6 years ago

This is happening because Module is using font-family "Roboto" for button-text and message-text that displayed in snackbar. https://github.com/prince8verma/react-native-snackbar/blob/7c4a2cc41dc2ebe45ffa234b53ba5d6dd57f2c3b/snackBar.js#L181

The solution is either add Roboto-regular and roboto-medium fonts in IOS and android, or make a PR to override font-styles. You can follow these steps for adding fonts in RN, https://medium.com/@kswanie21/custom-fonts-in-react-native-tutorial-for-ios-android-76ceeaa0eb78