sapo-components-ui-rn 1.1.43 → 1.1.44
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.esm.js +2 -1
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +2 -1
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/src/.DS_Store +0 -0
- package/src/utils/toast-manager.tsx +3 -1
package/dist/index.esm.js
CHANGED
|
@@ -7856,7 +7856,8 @@ var index = React__default.memo(NumberKeyboard);
|
|
|
7856
7856
|
|
|
7857
7857
|
var toastRef = React__default.createRef();
|
|
7858
7858
|
var showToast = function (_a) {
|
|
7859
|
-
var message = _a.message, _b = _a.duration, duration = _b === void 0 ?
|
|
7859
|
+
var message = _a.message, _b = _a.duration, duration = _b === void 0 ? 3000 : _b, _c = _a.position, position = _c === void 0 ? "bottom" : _c, _d = _a.type, type = _d === void 0 ? "success" : _d, _e = _a.onPress, onPress = _e === void 0 ? function () { } : _e, title = _a.title, _f = _a.spacer, spacer = _f === void 0 ? "normal" : _f;
|
|
7860
|
+
Keyboard.dismiss();
|
|
7860
7861
|
if (!toastRef.current) {
|
|
7861
7862
|
console.warn("Toast component is not mounted. Make sure to add <ToastProvider> to your app.");
|
|
7862
7863
|
return;
|