You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Please note that `yOffset` and `xOffset` are [ignored on Android 11 and above](<https://developer.android.com/reference/android/widget/Toast#setGravity(int,%20int,%20int)>).
84
84
85
-
For styling on iOS, you can pass an object with the following properties:
85
+
For customizing on iOS, you can pass an object with the following properties:
86
86
87
87
```ts
88
-
typeStylesIOS= {
88
+
typeOptionsIOS= {
89
89
textColor?:ColorValue;
90
90
backgroundColor?:ColorValue;
91
+
tapToDismissEnabled?:boolean;
91
92
};
92
93
```
93
94
@@ -109,6 +110,10 @@ Toast.showWithGravity(
109
110
Toast.show('This is a styled toast on iOS.', Toast.LONG, {
110
111
backgroundColor:'blue',
111
112
});
113
+
114
+
Toast.show('This is a toast that can be dismissed (iOS only).', Toast.LONG, {
0 commit comments