@legendapp/list 2.0.6 → 2.0.7
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/.DS_Store +0 -0
- package/CHANGELOG.md +3 -0
- package/index.js +7 -11
- package/index.mjs +7 -11
- package/package.json +1 -1
package/.DS_Store
ADDED
|
Binary file
|
package/CHANGELOG.md
CHANGED
package/index.js
CHANGED
|
@@ -266,17 +266,13 @@ var PositionViewAnimated = typedMemo(function PositionView2({
|
|
|
266
266
|
const position$ = useValue$(`containerPosition${id}`, {
|
|
267
267
|
getValue: (v) => v != null ? v : POSITION_OUT_OF_VIEW
|
|
268
268
|
});
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
{
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
],
|
|
277
|
-
...rest
|
|
278
|
-
}
|
|
279
|
-
);
|
|
269
|
+
let position;
|
|
270
|
+
if (reactNative.Platform.OS === "ios" || reactNative.Platform.OS === "android") {
|
|
271
|
+
position = horizontal ? { transform: [{ translateX: position$ }] } : { transform: [{ translateY: position$ }] };
|
|
272
|
+
} else {
|
|
273
|
+
position = horizontal ? { left: position$ } : { top: position$ };
|
|
274
|
+
}
|
|
275
|
+
return /* @__PURE__ */ React2__namespace.createElement(reactNative.Animated.View, { ref: refView, style: [style, position], ...rest });
|
|
280
276
|
});
|
|
281
277
|
var PositionViewSticky = typedMemo(function PositionViewSticky2({
|
|
282
278
|
id,
|
package/index.mjs
CHANGED
|
@@ -245,17 +245,13 @@ var PositionViewAnimated = typedMemo(function PositionView2({
|
|
|
245
245
|
const position$ = useValue$(`containerPosition${id}`, {
|
|
246
246
|
getValue: (v) => v != null ? v : POSITION_OUT_OF_VIEW
|
|
247
247
|
});
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
{
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
],
|
|
256
|
-
...rest
|
|
257
|
-
}
|
|
258
|
-
);
|
|
248
|
+
let position;
|
|
249
|
+
if (Platform.OS === "ios" || Platform.OS === "android") {
|
|
250
|
+
position = horizontal ? { transform: [{ translateX: position$ }] } : { transform: [{ translateY: position$ }] };
|
|
251
|
+
} else {
|
|
252
|
+
position = horizontal ? { left: position$ } : { top: position$ };
|
|
253
|
+
}
|
|
254
|
+
return /* @__PURE__ */ React2.createElement(Animated.View, { ref: refView, style: [style, position], ...rest });
|
|
259
255
|
});
|
|
260
256
|
var PositionViewSticky = typedMemo(function PositionViewSticky2({
|
|
261
257
|
id,
|
package/package.json
CHANGED