@legendapp/list 1.0.0-beta.12 → 1.0.0-beta.13
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/index.js +5 -2
- package/index.mjs +6 -3
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -191,10 +191,11 @@ function useInterval(callback, delay) {
|
|
|
191
191
|
return () => clearInterval(interval);
|
|
192
192
|
}, [delay]);
|
|
193
193
|
}
|
|
194
|
-
var
|
|
194
|
+
var LeanViewComponent = React6__namespace.forwardRef((props, ref) => {
|
|
195
195
|
return React6__namespace.createElement("RCTView", { ...props, ref });
|
|
196
196
|
});
|
|
197
|
-
|
|
197
|
+
LeanViewComponent.displayName = "RCTView";
|
|
198
|
+
var LeanView = reactNative.Platform.OS === "android" || reactNative.Platform.OS === "ios" ? LeanViewComponent : reactNative.View;
|
|
198
199
|
|
|
199
200
|
// src/constants.ts
|
|
200
201
|
var POSITION_OUT_OF_VIEW = -1e7;
|
|
@@ -288,6 +289,8 @@ var Container = ({
|
|
|
288
289
|
var useAnimatedValue = reactNative.useAnimatedValue || ((initialValue) => {
|
|
289
290
|
return React6.useRef(new reactNative.Animated.Value(initialValue)).current;
|
|
290
291
|
});
|
|
292
|
+
|
|
293
|
+
// src/useValue$.ts
|
|
291
294
|
function useValue$(key, getValue, useMicrotask) {
|
|
292
295
|
var _a;
|
|
293
296
|
const ctx = useStateContext();
|
package/index.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as React6 from 'react';
|
|
2
2
|
import React6__default, { createContext, memo, useReducer, useEffect, useMemo, useRef, useCallback, useImperativeHandle, useSyncExternalStore, useContext, useState, forwardRef, useLayoutEffect } from 'react';
|
|
3
|
-
import { View, Text, Animated, ScrollView, Dimensions, StyleSheet,
|
|
3
|
+
import { View, Text, Platform, Animated, ScrollView, Dimensions, StyleSheet, useAnimatedValue as useAnimatedValue$1 } from 'react-native';
|
|
4
4
|
|
|
5
5
|
// src/LegendList.tsx
|
|
6
6
|
var ContextState = React6.createContext(null);
|
|
@@ -170,10 +170,11 @@ function useInterval(callback, delay) {
|
|
|
170
170
|
return () => clearInterval(interval);
|
|
171
171
|
}, [delay]);
|
|
172
172
|
}
|
|
173
|
-
var
|
|
173
|
+
var LeanViewComponent = React6.forwardRef((props, ref) => {
|
|
174
174
|
return React6.createElement("RCTView", { ...props, ref });
|
|
175
175
|
});
|
|
176
|
-
|
|
176
|
+
LeanViewComponent.displayName = "RCTView";
|
|
177
|
+
var LeanView = Platform.OS === "android" || Platform.OS === "ios" ? LeanViewComponent : View;
|
|
177
178
|
|
|
178
179
|
// src/constants.ts
|
|
179
180
|
var POSITION_OUT_OF_VIEW = -1e7;
|
|
@@ -267,6 +268,8 @@ var Container = ({
|
|
|
267
268
|
var useAnimatedValue = useAnimatedValue$1 || ((initialValue) => {
|
|
268
269
|
return useRef(new Animated.Value(initialValue)).current;
|
|
269
270
|
});
|
|
271
|
+
|
|
272
|
+
// src/useValue$.ts
|
|
270
273
|
function useValue$(key, getValue, useMicrotask) {
|
|
271
274
|
var _a;
|
|
272
275
|
const ctx = useStateContext();
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@legendapp/list",
|
|
3
|
-
"version": "1.0.0-beta.
|
|
3
|
+
"version": "1.0.0-beta.13",
|
|
4
4
|
"description": "Legend List aims to be a drop-in replacement for FlatList with much better performance and supporting dynamically sized items.",
|
|
5
5
|
"sideEffects": false,
|
|
6
6
|
"private": false,
|