-
-
Notifications
You must be signed in to change notification settings - Fork 88
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
offset is not provided as prop in toast.show(str, {offset: 30}) #108
Comments
Raised a PR to fix this issue. |
Hi, when the fix will be released? |
You can modify offset globally in ToastProvider, It's by intention not modifiable on show() because it can break the stacking feature (Toasts going over each other). Do you have a use case where overriding ToastProvider isn't be enough? |
I use bottom position of toast and on some screens I have my bottom bar with actions . So for these screens I want to set specify (larger offset) to prevent the bottom bar from being covered by the toast. |
@arnnis but I understand the reason why it is only globally.. thanks for your time..
|
We also have a style prop you can use margins there
|
With workaround solution from @lminar, i can't interact to area below the Toast :( |
Current behaviour
I can't access offset prop in toast.show method.
Expected behaviour
We should be able to access offset (ideally also bottomOffset and topOffset, but that is not mentioned in documentation, so let's focus just on offset).
Documentation example states this:
Code sample
Snack example:
https://snack.expo.dev/iidWBs8MB
Screenshots (if applicable)
//
What have you tried
When i set offset (also top and bottom) in provider, it works. But that is global setting i would like to override.
Your Environment
The text was updated successfully, but these errors were encountered: