@kaushverse/pickify 1.1.7 → 1.1.8
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.js +3 -5
- package/dist/index.mjs +3 -5
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -291,12 +291,10 @@ function MultiPickerGroup({
|
|
|
291
291
|
renderGroupIcon,
|
|
292
292
|
defaultOpen = false
|
|
293
293
|
}) {
|
|
294
|
-
const [open, setOpen] = (0, import_react2.useState)(
|
|
294
|
+
const [open, setOpen] = (0, import_react2.useState)(false);
|
|
295
295
|
const [contentHeight, setContentHeight] = (0, import_react2.useState)(0);
|
|
296
296
|
const [isMeasured, setIsMeasured] = (0, import_react2.useState)(false);
|
|
297
|
-
const animatedHeight = (0, import_react2.useRef)(
|
|
298
|
-
new import_react_native2.Animated.Value(defaultOpen ? 1 : 0)
|
|
299
|
-
).current;
|
|
297
|
+
const animatedHeight = (0, import_react2.useRef)(new import_react_native2.Animated.Value(0)).current;
|
|
300
298
|
(0, import_react2.useEffect)(() => {
|
|
301
299
|
if (defaultOpen && contentHeight > 0 && !isMeasured) {
|
|
302
300
|
setIsMeasured(true);
|
|
@@ -537,7 +535,7 @@ function MultiPickerModal({
|
|
|
537
535
|
{
|
|
538
536
|
label: group.label,
|
|
539
537
|
renderGroupIcon,
|
|
540
|
-
defaultOpen:
|
|
538
|
+
defaultOpen: false,
|
|
541
539
|
children: group.data.map((item) => /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(
|
|
542
540
|
MultiPickerItem,
|
|
543
541
|
{
|
package/dist/index.mjs
CHANGED
|
@@ -270,12 +270,10 @@ function MultiPickerGroup({
|
|
|
270
270
|
renderGroupIcon,
|
|
271
271
|
defaultOpen = false
|
|
272
272
|
}) {
|
|
273
|
-
const [open, setOpen] = useState2(
|
|
273
|
+
const [open, setOpen] = useState2(false);
|
|
274
274
|
const [contentHeight, setContentHeight] = useState2(0);
|
|
275
275
|
const [isMeasured, setIsMeasured] = useState2(false);
|
|
276
|
-
const animatedHeight = useRef(
|
|
277
|
-
new Animated.Value(defaultOpen ? 1 : 0)
|
|
278
|
-
).current;
|
|
276
|
+
const animatedHeight = useRef(new Animated.Value(0)).current;
|
|
279
277
|
useEffect2(() => {
|
|
280
278
|
if (defaultOpen && contentHeight > 0 && !isMeasured) {
|
|
281
279
|
setIsMeasured(true);
|
|
@@ -516,7 +514,7 @@ function MultiPickerModal({
|
|
|
516
514
|
{
|
|
517
515
|
label: group.label,
|
|
518
516
|
renderGroupIcon,
|
|
519
|
-
defaultOpen:
|
|
517
|
+
defaultOpen: false,
|
|
520
518
|
children: group.data.map((item) => /* @__PURE__ */ jsx4(
|
|
521
519
|
MultiPickerItem,
|
|
522
520
|
{
|
package/package.json
CHANGED