-
Notifications
You must be signed in to change notification settings - Fork 8
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: Override message text style #6
Comments
Actually it seems like this PR solves the issue, can we get it merged ? |
+1 |
if you remove your react-native-paper-toast and then use either of these yarn: npm: you will get the ability to add 3 new properties to the toast - snackbarStyle, messageStyle and messageContainerStyle I'm using 2 of the new properties and the 'minWidth' fixes the very thin green snackbar (no text visible) and the 'flexDirection: 'row'' fixes the stacked layout (Icon above the text - now it's inline) toaster.show({ type: type, message: message, snackbarStyle: { minWidth: 300 }, messageContainerStyle: { flex: 1, flexDirection: 'row' } }); |
Included in latest release. |
Great lib, thanks for making this !
One suggestion I have is the ability to override the message style.
Currently its not configurable.
We could introduce a new prop called
messageStyle
that we can pass to the Text component.Let me know what you think.
The text was updated successfully, but these errors were encountered: