Comparing version 1.0.62 to 1.0.63
@@ -16,6 +16,2 @@ "use strict"; | ||
var _reactNative = require("react-native"); | ||
var _reactNativeSafeAreaContext = require("react-native-safe-area-context"); | ||
var _immer = _interopRequireDefault(require("immer")); | ||
@@ -56,4 +52,3 @@ | ||
var inset = (0, _reactNativeSafeAreaContext.useSafeAreaInsets)(); | ||
console.log(_actbase.default, setDimen); | ||
console.log(setDimen); | ||
var value = React.useMemo(function () { | ||
@@ -102,5 +97,2 @@ return { | ||
}; | ||
_reactNative.LayoutAnimation.configureNext(_reactNative.LayoutAnimation.Presets.spring); | ||
var index = 0; | ||
@@ -117,4 +109,2 @@ setToasts((0, _immer.default)(function (draft) { | ||
_reactNative.LayoutAnimation.configureNext(_reactNative.LayoutAnimation.Presets.easeInEaseOut); | ||
var ix = (_a = draft === null || draft === void 0 ? void 0 : draft.items) === null || _a === void 0 ? void 0 : _a.findIndex(function (v) { | ||
@@ -160,5 +150,3 @@ return v.index === index; | ||
}, React.createElement(_View.default, { | ||
style: { | ||
paddingTop: (inset === null || inset === void 0 ? void 0 : inset.top) || 0 | ||
} | ||
className: 'ab-toast-top' | ||
}, (_c = (_b = toasts === null || toasts === void 0 ? void 0 : toasts.items) === null || _b === void 0 ? void 0 : _b.filter(function (v) { | ||
@@ -174,5 +162,3 @@ return v.position === 'top'; | ||
})), React.createElement(_View.default, { | ||
style: { | ||
paddingBottom: (inset === null || inset === void 0 ? void 0 : inset.top) || 0 | ||
} | ||
className: 'ab-toast-bottom' | ||
}, (_e = (_d = toasts === null || toasts === void 0 ? void 0 : toasts.items) === null || _d === void 0 ? void 0 : _d.filter(function (v) { | ||
@@ -179,0 +165,0 @@ return v.position === 'bottom'; |
{ | ||
"name": "actbase", | ||
"version": "1.0.62", | ||
"version": "1.0.63", | ||
"description": "React-Native Design Components", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
291857
5864