@legendapp/list 1.0.0-beta.11 → 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/animated.d.mts +46 -4
- package/animated.d.ts +46 -4
- package/index.d.mts +51 -8
- package/index.d.ts +51 -8
- package/index.js +252 -170
- package/index.mjs +218 -136
- package/package.json +3 -6
- package/reanimated.d.mts +4 -4
- package/reanimated.d.ts +4 -4
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@legendapp/list",
|
|
3
|
-
"version": "1.0.0-beta.
|
|
4
|
-
"description": "
|
|
3
|
+
"version": "1.0.0-beta.13",
|
|
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,
|
|
7
7
|
"main": "./index.js",
|
|
@@ -20,10 +20,7 @@
|
|
|
20
20
|
"react-native",
|
|
21
21
|
"list"
|
|
22
22
|
],
|
|
23
|
-
"repository":
|
|
24
|
-
"type": "git",
|
|
25
|
-
"url": "git+https://github.com/LegendApp/legend-list.git"
|
|
26
|
-
},
|
|
23
|
+
"repository": "github:LegendApp/legend-list",
|
|
27
24
|
"license": "MIT",
|
|
28
25
|
"bugs": {
|
|
29
26
|
"url": "https://github.com/LegendApp/legend-list/issues"
|
package/reanimated.d.mts
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import { LegendListRef, LegendListPropsBase } from '@legendapp/list';
|
|
2
|
-
import
|
|
2
|
+
import React__default, { ComponentProps } from 'react';
|
|
3
3
|
import Animated from 'react-native-reanimated';
|
|
4
4
|
|
|
5
5
|
type KeysToOmit = "getEstimatedItemSize" | "keyExtractor" | "animatedProps" | "renderItem" | "onItemSizeChanged";
|
|
6
6
|
type PropsBase<ItemT> = LegendListPropsBase<ItemT, ComponentProps<typeof Animated.ScrollView>>;
|
|
7
7
|
interface AnimatedLegendListProps<ItemT> extends Omit<PropsBase<ItemT>, KeysToOmit> {
|
|
8
|
-
refScrollView?:
|
|
8
|
+
refScrollView?: React__default.Ref<Animated.ScrollView>;
|
|
9
9
|
}
|
|
10
10
|
type OtherAnimatedLegendListProps<ItemT> = Pick<PropsBase<ItemT>, KeysToOmit>;
|
|
11
11
|
type AnimatedLegendListDefinition = <ItemT>(props: Omit<AnimatedLegendListProps<ItemT>, "refLegendList"> & OtherAnimatedLegendListProps<ItemT> & {
|
|
12
|
-
ref?:
|
|
13
|
-
}) =>
|
|
12
|
+
ref?: React__default.Ref<LegendListRef>;
|
|
13
|
+
}) => React__default.ReactElement | null;
|
|
14
14
|
declare const AnimatedLegendList: AnimatedLegendListDefinition;
|
|
15
15
|
|
|
16
16
|
export { AnimatedLegendList };
|
package/reanimated.d.ts
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import { LegendListRef, LegendListPropsBase } from '@legendapp/list';
|
|
2
|
-
import
|
|
2
|
+
import React__default, { ComponentProps } from 'react';
|
|
3
3
|
import Animated from 'react-native-reanimated';
|
|
4
4
|
|
|
5
5
|
type KeysToOmit = "getEstimatedItemSize" | "keyExtractor" | "animatedProps" | "renderItem" | "onItemSizeChanged";
|
|
6
6
|
type PropsBase<ItemT> = LegendListPropsBase<ItemT, ComponentProps<typeof Animated.ScrollView>>;
|
|
7
7
|
interface AnimatedLegendListProps<ItemT> extends Omit<PropsBase<ItemT>, KeysToOmit> {
|
|
8
|
-
refScrollView?:
|
|
8
|
+
refScrollView?: React__default.Ref<Animated.ScrollView>;
|
|
9
9
|
}
|
|
10
10
|
type OtherAnimatedLegendListProps<ItemT> = Pick<PropsBase<ItemT>, KeysToOmit>;
|
|
11
11
|
type AnimatedLegendListDefinition = <ItemT>(props: Omit<AnimatedLegendListProps<ItemT>, "refLegendList"> & OtherAnimatedLegendListProps<ItemT> & {
|
|
12
|
-
ref?:
|
|
13
|
-
}) =>
|
|
12
|
+
ref?: React__default.Ref<LegendListRef>;
|
|
13
|
+
}) => React__default.ReactElement | null;
|
|
14
14
|
declare const AnimatedLegendList: AnimatedLegendListDefinition;
|
|
15
15
|
|
|
16
16
|
export { AnimatedLegendList };
|