react-native-refresh-list2 1.0.0
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/LICENSE +20 -0
- package/README.md +67 -0
- package/lib/module/Loading/Loading.js +19 -0
- package/lib/module/Loading/Loading.js.map +1 -0
- package/lib/module/Loading/index.js +5 -0
- package/lib/module/Loading/index.js.map +1 -0
- package/lib/module/RefreshControl/BottomContainer.js +88 -0
- package/lib/module/RefreshControl/BottomContainer.js.map +1 -0
- package/lib/module/RefreshControl/NormalControl.js +94 -0
- package/lib/module/RefreshControl/NormalControl.js.map +1 -0
- package/lib/module/RefreshControl/RefreshContainer.js +53 -0
- package/lib/module/RefreshControl/RefreshContainer.js.map +1 -0
- package/lib/module/RefreshControl/RefreshContext.js +32 -0
- package/lib/module/RefreshControl/RefreshContext.js.map +1 -0
- package/lib/module/RefreshControl/RefreshFlatList.js +291 -0
- package/lib/module/RefreshControl/RefreshFlatList.js.map +1 -0
- package/lib/module/RefreshControl/RefreshScrollView.js +279 -0
- package/lib/module/RefreshControl/RefreshScrollView.js.map +1 -0
- package/lib/module/RefreshControl/index.js +7 -0
- package/lib/module/RefreshControl/index.js.map +1 -0
- package/lib/module/RefreshControl/type.js +39 -0
- package/lib/module/RefreshControl/type.js.map +1 -0
- package/lib/module/icon/CommentIcon.js +32 -0
- package/lib/module/icon/CommentIcon.js.map +1 -0
- package/lib/module/icon/Icon.js +25 -0
- package/lib/module/icon/Icon.js.map +1 -0
- package/lib/module/icon/MoreIcon.js +40 -0
- package/lib/module/icon/MoreIcon.js.map +1 -0
- package/lib/module/icon/Praise.js +23 -0
- package/lib/module/icon/Praise.js.map +1 -0
- package/lib/module/icon/SearchIcon.js +35 -0
- package/lib/module/icon/SearchIcon.js.map +1 -0
- package/lib/module/icon/index.js +5 -0
- package/lib/module/icon/index.js.map +1 -0
- package/lib/module/icon/library.js +20 -0
- package/lib/module/icon/library.js.map +1 -0
- package/lib/module/index.js +4 -0
- package/lib/module/index.js.map +1 -0
- package/lib/module/package.json +1 -0
- package/lib/typescript/package.json +1 -0
- package/lib/typescript/src/Loading/Loading.d.ts +9 -0
- package/lib/typescript/src/Loading/Loading.d.ts.map +1 -0
- package/lib/typescript/src/Loading/index.d.ts +3 -0
- package/lib/typescript/src/Loading/index.d.ts.map +1 -0
- package/lib/typescript/src/RefreshControl/BottomContainer.d.ts +17 -0
- package/lib/typescript/src/RefreshControl/BottomContainer.d.ts.map +1 -0
- package/lib/typescript/src/RefreshControl/NormalControl.d.ts +20 -0
- package/lib/typescript/src/RefreshControl/NormalControl.d.ts.map +1 -0
- package/lib/typescript/src/RefreshControl/RefreshContainer.d.ts +17 -0
- package/lib/typescript/src/RefreshControl/RefreshContainer.d.ts.map +1 -0
- package/lib/typescript/src/RefreshControl/RefreshContext.d.ts +9 -0
- package/lib/typescript/src/RefreshControl/RefreshContext.d.ts.map +1 -0
- package/lib/typescript/src/RefreshControl/RefreshFlatList.d.ts +20 -0
- package/lib/typescript/src/RefreshControl/RefreshFlatList.d.ts.map +1 -0
- package/lib/typescript/src/RefreshControl/RefreshScrollView.d.ts +20 -0
- package/lib/typescript/src/RefreshControl/RefreshScrollView.d.ts.map +1 -0
- package/lib/typescript/src/RefreshControl/index.d.ts +5 -0
- package/lib/typescript/src/RefreshControl/index.d.ts.map +1 -0
- package/lib/typescript/src/RefreshControl/type.d.ts +70 -0
- package/lib/typescript/src/RefreshControl/type.d.ts.map +1 -0
- package/lib/typescript/src/icon/CommentIcon.d.ts +3 -0
- package/lib/typescript/src/icon/CommentIcon.d.ts.map +1 -0
- package/lib/typescript/src/icon/Icon.d.ts +10 -0
- package/lib/typescript/src/icon/Icon.d.ts.map +1 -0
- package/lib/typescript/src/icon/MoreIcon.d.ts +3 -0
- package/lib/typescript/src/icon/MoreIcon.d.ts.map +1 -0
- package/lib/typescript/src/icon/Praise.d.ts +9 -0
- package/lib/typescript/src/icon/Praise.d.ts.map +1 -0
- package/lib/typescript/src/icon/SearchIcon.d.ts +9 -0
- package/lib/typescript/src/icon/SearchIcon.d.ts.map +1 -0
- package/lib/typescript/src/icon/index.d.ts +3 -0
- package/lib/typescript/src/icon/index.d.ts.map +1 -0
- package/lib/typescript/src/icon/library.d.ts +17 -0
- package/lib/typescript/src/icon/library.d.ts.map +1 -0
- package/lib/typescript/src/index.d.ts +2 -0
- package/lib/typescript/src/index.d.ts.map +1 -0
- package/package.json +168 -0
- package/src/Loading/Loading.tsx +15 -0
- package/src/Loading/index.tsx +5 -0
- package/src/RefreshControl/BottomContainer.tsx +112 -0
- package/src/RefreshControl/NormalControl.tsx +118 -0
- package/src/RefreshControl/RefreshContainer.tsx +74 -0
- package/src/RefreshControl/RefreshContext.tsx +30 -0
- package/src/RefreshControl/RefreshFlatList.tsx +372 -0
- package/src/RefreshControl/RefreshScrollView.tsx +359 -0
- package/src/RefreshControl/index.tsx +5 -0
- package/src/RefreshControl/type.ts +74 -0
- package/src/icon/CommentIcon.tsx +29 -0
- package/src/icon/Icon.tsx +26 -0
- package/src/icon/MoreIcon.tsx +38 -0
- package/src/icon/Praise.tsx +21 -0
- package/src/icon/SearchIcon.tsx +36 -0
- package/src/icon/index.tsx +3 -0
- package/src/icon/library.ts +30 -0
- package/src/index.tsx +1 -0
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
import Svg, { Defs, ClipPath, Rect, G, Path } from "react-native-svg";
|
|
4
|
+
/* SVGR has dropped some elements not supported by react-native-svg: style */
|
|
5
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
6
|
+
const SVGComponent = props => /*#__PURE__*/_jsxs(Svg, {
|
|
7
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
8
|
+
xmlnsXlink: "http://www.w3.org/1999/xlink",
|
|
9
|
+
width: 14,
|
|
10
|
+
height: 14,
|
|
11
|
+
viewBox: "0 0 14 14",
|
|
12
|
+
...props,
|
|
13
|
+
children: [/*#__PURE__*/_jsx(Defs, {
|
|
14
|
+
children: /*#__PURE__*/_jsx(ClipPath, {
|
|
15
|
+
id: "a",
|
|
16
|
+
children: /*#__PURE__*/_jsx(Rect, {
|
|
17
|
+
width: 14,
|
|
18
|
+
height: 14,
|
|
19
|
+
transform: "translate(126.35 43.8)"
|
|
20
|
+
})
|
|
21
|
+
})
|
|
22
|
+
}), /*#__PURE__*/_jsx(G, {
|
|
23
|
+
className: "b",
|
|
24
|
+
transform: "translate(-126.35 -43.8)",
|
|
25
|
+
children: /*#__PURE__*/_jsx(Path, {
|
|
26
|
+
d: "M42.26.643H33.389a1.949,1.949,0,0,0-1.948,1.948V8.929a1.948,1.948,0,0,0,1.948,1.947h2.1a.139.139,0,0,1,.106.046l1.168,1.17a1.532,1.532,0,0,0,1.058.423,1.464,1.464,0,0,0,1.039-.425l1.167-1.167a.137.137,0,0,1,.107-.047h2.1A1.991,1.991,0,0,0,44.2,8.929V2.591A1.95,1.95,0,0,0,42.26.643M37.507,11.325,36.34,10.159a1.176,1.176,0,0,0-.877-.376h-2.1a.856.856,0,0,1-.854-.854V2.591a.856.856,0,0,1,.854-.854H42.24a.856.856,0,0,1,.854.854V8.929a.856.856,0,0,1-.854.854H40.09a1.271,1.271,0,0,0-.874.374l-1.167,1.168a.373.373,0,0,1-.527.016l-.015-.016",
|
|
27
|
+
transform: "translate(95.559 44.357)"
|
|
28
|
+
})
|
|
29
|
+
})]
|
|
30
|
+
});
|
|
31
|
+
export default SVGComponent;
|
|
32
|
+
//# sourceMappingURL=CommentIcon.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["Svg","Defs","ClipPath","Rect","G","Path","jsx","_jsx","jsxs","_jsxs","SVGComponent","props","xmlns","xmlnsXlink","width","height","viewBox","children","id","transform","className","d"],"sourceRoot":"..\\..\\..\\src","sources":["icon/CommentIcon.tsx"],"mappings":";;AAAA,OAAOA,GAAG,IAAGC,IAAI,EAAEC,QAAQ,EAAEC,IAAI,EAAEC,CAAC,EAAEC,IAAI,QAAO,kBAAkB;AACnE;AAAA,SAAAC,GAAA,IAAAC,IAAA,EAAAC,IAAA,IAAAC,KAAA;AACA,MAAMC,YAAY,GAAIC,KAAU,iBAC5BF,KAAA,CAACT,GAAG;EACAY,KAAK,EAAC,4BAA4B;EAClCC,UAAU,EAAC,8BAA8B;EACzCC,KAAK,EAAE,EAAG;EACVC,MAAM,EAAE,EAAG;EACXC,OAAO,EAAC,WAAW;EAAA,GACfL,KAAK;EAAAM,QAAA,gBAETV,IAAA,CAACN,IAAI;IAAAgB,QAAA,eACDV,IAAA,CAACL,QAAQ;MAACgB,EAAE,EAAC,GAAG;MAAAD,QAAA,eACZV,IAAA,CAACJ,IAAI;QACDW,KAAK,EAAE,EAAG;QACVC,MAAM,EAAE,EAAG;QACXI,SAAS,EAAC;MAAwB,CACrC;IAAC,CACI;EAAC,CACT,CAAC,eACPZ,IAAA,CAACH,CAAC;IAACgB,SAAS,EAAC,GAAG;IAACD,SAAS,EAAC,0BAA0B;IAAAF,QAAA,eACjDV,IAAA,CAACF,IAAI;MACDgB,CAAC,EAAC,4hBAA4hB;MAC9hBF,SAAS,EAAC;IAA0B,CACvC;EAAC,CACH,CAAC;AAAA,CACH,CACR;AACD,eAAeT,YAAY","ignoreList":[]}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
import React from 'react';
|
|
4
|
+
import Svg, { Path } from 'react-native-svg';
|
|
5
|
+
import { Library } from "./library.js";
|
|
6
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
7
|
+
const Icon = props => {
|
|
8
|
+
const {
|
|
9
|
+
name,
|
|
10
|
+
size = 20,
|
|
11
|
+
color = 'black'
|
|
12
|
+
} = props;
|
|
13
|
+
return /*#__PURE__*/_jsx(Svg, {
|
|
14
|
+
testID: "MAUI-ICON-ID",
|
|
15
|
+
width: size,
|
|
16
|
+
height: size,
|
|
17
|
+
viewBox: "0 0 1024 1024",
|
|
18
|
+
children: /*#__PURE__*/_jsx(Path, {
|
|
19
|
+
d: Library[name],
|
|
20
|
+
fill: color
|
|
21
|
+
})
|
|
22
|
+
});
|
|
23
|
+
};
|
|
24
|
+
export default Icon;
|
|
25
|
+
//# sourceMappingURL=Icon.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["React","Svg","Path","Library","jsx","_jsx","Icon","props","name","size","color","testID","width","height","viewBox","children","d","fill"],"sourceRoot":"..\\..\\..\\src","sources":["icon/Icon.tsx"],"mappings":";;AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,OAAOC,GAAG,IAAIC,IAAI,QAAQ,kBAAkB;AAC5C,SAASC,OAAO,QAAQ,cAAW;AAAC,SAAAC,GAAA,IAAAC,IAAA;AAQpC,MAAMC,IAAyB,GAAIC,KAAK,IAAK;EAC3C,MAAM;IAAEC,IAAI;IAAEC,IAAI,GAAG,EAAE;IAAEC,KAAK,GAAG;EAAQ,CAAC,GAAGH,KAAK;EAElD,oBACEF,IAAA,CAACJ,GAAG;IACFU,MAAM,EAAC,cAAc;IACrBC,KAAK,EAAEH,IAAK;IACZI,MAAM,EAAEJ,IAAK;IACbK,OAAO,EAAC,eAAe;IAAAC,QAAA,eAEvBV,IAAA,CAACH,IAAI;MAACc,CAAC,EAAEb,OAAO,CAACK,IAAI,CAAE;MAACS,IAAI,EAAEP;IAAM,CAAE;EAAC,CACpC,CAAC;AAEV,CAAC;AAED,eAAeJ,IAAI","ignoreList":[]}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
import Svg, { Defs, ClipPath, Rect, G, Path } from "react-native-svg";
|
|
4
|
+
/* SVGR has dropped some elements not supported by react-native-svg: style */
|
|
5
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
6
|
+
const SVGComponent = props => /*#__PURE__*/_jsxs(Svg, {
|
|
7
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
8
|
+
xmlnsXlink: "http://www.w3.org/1999/xlink",
|
|
9
|
+
width: 16,
|
|
10
|
+
height: 16,
|
|
11
|
+
viewBox: "0 0 16 16",
|
|
12
|
+
...props,
|
|
13
|
+
children: [/*#__PURE__*/_jsx(Defs, {
|
|
14
|
+
children: /*#__PURE__*/_jsx(ClipPath, {
|
|
15
|
+
id: "a",
|
|
16
|
+
children: /*#__PURE__*/_jsx(Rect, {
|
|
17
|
+
width: 16,
|
|
18
|
+
height: 16,
|
|
19
|
+
transform: "translate(314 477)"
|
|
20
|
+
})
|
|
21
|
+
})
|
|
22
|
+
}), /*#__PURE__*/_jsx(G, {
|
|
23
|
+
className: "b",
|
|
24
|
+
transform: "translate(-314 -477)",
|
|
25
|
+
children: /*#__PURE__*/_jsxs(G, {
|
|
26
|
+
transform: "translate(225.396 64.866)",
|
|
27
|
+
children: [/*#__PURE__*/_jsx(Path, {
|
|
28
|
+
d: "M746.662,419.69a1.556,1.556,0,1,0,1.556-1.556A1.556,1.556,0,0,0,746.662,419.69Z",
|
|
29
|
+
transform: "translate(-646.169)"
|
|
30
|
+
}), /*#__PURE__*/_jsx(Path, {
|
|
31
|
+
d: "M89.6,419.69a1.556,1.556,0,1,0,1.556-1.556A1.556,1.556,0,0,0,89.6,419.69Z"
|
|
32
|
+
}), /*#__PURE__*/_jsx(Path, {
|
|
33
|
+
d: "M418.133,419.69a1.556,1.556,0,1,0,1.556-1.556A1.555,1.555,0,0,0,418.133,419.69Z",
|
|
34
|
+
transform: "translate(-323.084)"
|
|
35
|
+
})]
|
|
36
|
+
})
|
|
37
|
+
})]
|
|
38
|
+
});
|
|
39
|
+
export default SVGComponent;
|
|
40
|
+
//# sourceMappingURL=MoreIcon.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["Svg","Defs","ClipPath","Rect","G","Path","jsx","_jsx","jsxs","_jsxs","SVGComponent","props","xmlns","xmlnsXlink","width","height","viewBox","children","id","transform","className","d"],"sourceRoot":"..\\..\\..\\src","sources":["icon/MoreIcon.tsx"],"mappings":";;AAAA,OAAOA,GAAG,IAAGC,IAAI,EAAEC,QAAQ,EAAEC,IAAI,EAAEC,CAAC,EAAEC,IAAI,QAAO,kBAAkB;AACnE;AAAA,SAAAC,GAAA,IAAAC,IAAA,EAAAC,IAAA,IAAAC,KAAA;AACA,MAAMC,YAAY,GAAIC,KAAU,iBAC5BF,KAAA,CAACT,GAAG;EACAY,KAAK,EAAC,4BAA4B;EAClCC,UAAU,EAAC,8BAA8B;EACzCC,KAAK,EAAE,EAAG;EACVC,MAAM,EAAE,EAAG;EACXC,OAAO,EAAC,WAAW;EAAA,GACfL,KAAK;EAAAM,QAAA,gBAETV,IAAA,CAACN,IAAI;IAAAgB,QAAA,eACDV,IAAA,CAACL,QAAQ;MAACgB,EAAE,EAAC,GAAG;MAAAD,QAAA,eACZV,IAAA,CAACJ,IAAI;QACDW,KAAK,EAAE,EAAG;QACVC,MAAM,EAAE,EAAG;QACXI,SAAS,EAAC;MAAoB,CACjC;IAAC,CACI;EAAC,CACT,CAAC,eACPZ,IAAA,CAACH,CAAC;IAACgB,SAAS,EAAC,GAAG;IAACD,SAAS,EAAC,sBAAsB;IAAAF,QAAA,eAC7CR,KAAA,CAACL,CAAC;MAACe,SAAS,EAAC,2BAA2B;MAAAF,QAAA,gBACpCV,IAAA,CAACF,IAAI;QACDgB,CAAC,EAAC,iFAAiF;QACnFF,SAAS,EAAC;MAAqB,CAClC,CAAC,eACFZ,IAAA,CAACF,IAAI;QACDgB,CAAC,EAAC;MAA2E,CAChF,CAAC,eACFd,IAAA,CAACF,IAAI;QACDgB,CAAC,EAAC,iFAAiF;QACnFF,SAAS,EAAC;MAAqB,CAClC,CAAC;IAAA,CACH;EAAC,CACL,CAAC;AAAA,CACH,CACR;AACD,eAAeT,YAAY","ignoreList":[]}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
import React from 'react';
|
|
4
|
+
import { Svg, Path } from 'react-native-svg';
|
|
5
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
6
|
+
const CartIcon = ({
|
|
7
|
+
width = 14,
|
|
8
|
+
height = 14,
|
|
9
|
+
fill = '#666'
|
|
10
|
+
}) => {
|
|
11
|
+
return /*#__PURE__*/_jsx(Svg, {
|
|
12
|
+
width: width,
|
|
13
|
+
height: height,
|
|
14
|
+
viewBox: "0 0 14 14",
|
|
15
|
+
fill: "none",
|
|
16
|
+
children: /*#__PURE__*/_jsx(Path, {
|
|
17
|
+
d: "M11.666 4.347H8.061V4.17l.137-1.064a3.2 3.2 0 00-.276-1.868 2.055 2.055 0 00-1.596-1.246l-.2-.034a1.4 1.4 0 00-1.263.176 1.348 1.348 0 00-.177.185l-.024.117a1.38 1.38 0 00-.276.427.342.342 0 00-.073.5 1.345 1.345 0 00-.1.244.608.608 0 00-.036.249V2.861A2.419 2.419 0 011.881 5.446H1.023a1.012 1.012 0 00-.745.318A1.027 1.027 0 000 6.537l.275 5.218A1.072 1.072 0 001.33 12.774h8.961a1.216 1.216 0 001.226-1.049l1.2-5.977a1.261 1.261 0 00-1.054-1.4zM5.408 1.356a.328.328 0 01.322-.256.32.32 0 01.061 0l.2.034a1.017 1.017 0 01.773.606 1.964 1.964 0 01.2 1.254l-.13 1.069v.172A1.243 1.243 0 008.061 5.461h3.462a.209.209 0 01.119.177l-1.2 5.944c0 .052-.088.113-.146.113H3.449L3.075 6.312A3.557 3.557 0 005.408 2.827zM2.371 11.342v.034a.3.3 0 01-.318.319H1.538a.346.346 0 01-.319-.32L1.082 6.81A.319.319 0 011.4 6.492h.344a.375.375 0 01.318.319z",
|
|
18
|
+
fill: fill
|
|
19
|
+
})
|
|
20
|
+
});
|
|
21
|
+
};
|
|
22
|
+
export default CartIcon;
|
|
23
|
+
//# sourceMappingURL=Praise.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["React","Svg","Path","jsx","_jsx","CartIcon","width","height","fill","viewBox","children","d"],"sourceRoot":"..\\..\\..\\src","sources":["icon/Praise.tsx"],"mappings":";;AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,GAAG,EAAEC,IAAI,QAAQ,kBAAkB;AAAC,SAAAC,GAAA,IAAAC,IAAA;AAQ7C,MAAMC,QAAiC,GAAGA,CAAC;EAAEC,KAAK,GAAG,EAAE;EAAEC,MAAM,GAAG,EAAE;EAAEC,IAAI,GAAG;AAAO,CAAC,KAAK;EACxF,oBACEJ,IAAA,CAACH,GAAG;IAACK,KAAK,EAAEA,KAAM;IAACC,MAAM,EAAEA,MAAO;IAACE,OAAO,EAAC,WAAW;IAACD,IAAI,EAAC,MAAM;IAAAE,QAAA,eAChEN,IAAA,CAACF,IAAI;MACHS,CAAC,EAAC,y0BAAy0B;MAC30BH,IAAI,EAAEA;IAAK,CACZ;EAAC,CACC,CAAC;AAEV,CAAC;AAED,eAAeH,QAAQ","ignoreList":[]}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
import React from 'react';
|
|
4
|
+
import { Svg, Circle, Line } from 'react-native-svg';
|
|
5
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
6
|
+
const SearchIcon = ({
|
|
7
|
+
width = 20,
|
|
8
|
+
height = 20,
|
|
9
|
+
fill = '#111'
|
|
10
|
+
}) => {
|
|
11
|
+
return /*#__PURE__*/_jsxs(Svg, {
|
|
12
|
+
width: width,
|
|
13
|
+
height: height,
|
|
14
|
+
viewBox: "0 0 20 20",
|
|
15
|
+
fill: "none",
|
|
16
|
+
children: [/*#__PURE__*/_jsx(Circle, {
|
|
17
|
+
cx: 9.5,
|
|
18
|
+
cy: 9.5,
|
|
19
|
+
r: 6,
|
|
20
|
+
stroke: fill,
|
|
21
|
+
strokeWidth: 1.5,
|
|
22
|
+
fill: "none"
|
|
23
|
+
}), /*#__PURE__*/_jsx(Line, {
|
|
24
|
+
x1: 13.74,
|
|
25
|
+
y1: 13.74,
|
|
26
|
+
x2: 16.85,
|
|
27
|
+
y2: 16.85,
|
|
28
|
+
stroke: fill,
|
|
29
|
+
strokeWidth: 1.5,
|
|
30
|
+
strokeLinecap: "round"
|
|
31
|
+
})]
|
|
32
|
+
});
|
|
33
|
+
};
|
|
34
|
+
export default SearchIcon;
|
|
35
|
+
//# sourceMappingURL=SearchIcon.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["React","Svg","Circle","Line","jsx","_jsx","jsxs","_jsxs","SearchIcon","width","height","fill","viewBox","children","cx","cy","r","stroke","strokeWidth","x1","y1","x2","y2","strokeLinecap"],"sourceRoot":"..\\..\\..\\src","sources":["icon/SearchIcon.tsx"],"mappings":";;AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,GAAG,EAAEC,MAAM,EAAEC,IAAI,QAAQ,kBAAkB;AAAC,SAAAC,GAAA,IAAAC,IAAA,EAAAC,IAAA,IAAAC,KAAA;AAQrD,MAAMC,UAAqC,GAAGA,CAAC;EAAEC,KAAK,GAAG,EAAE;EAAEC,MAAM,GAAG,EAAE;EAAEC,IAAI,GAAG;AAAO,CAAC,KAAK;EAC5F,oBACEJ,KAAA,CAACN,GAAG;IAACQ,KAAK,EAAEA,KAAM;IAACC,MAAM,EAAEA,MAAO;IAACE,OAAO,EAAC,WAAW;IAACD,IAAI,EAAC,MAAM;IAAAE,QAAA,gBAEhER,IAAA,CAACH,MAAM;MACLY,EAAE,EAAE,GAAI;MACRC,EAAE,EAAE,GAAI;MACRC,CAAC,EAAE,CAAE;MACLC,MAAM,EAAEN,IAAK;MACbO,WAAW,EAAE,GAAI;MACjBP,IAAI,EAAC;IAAM,CACZ,CAAC,eAEFN,IAAA,CAACF,IAAI;MACHgB,EAAE,EAAE,KAAM;MACVC,EAAE,EAAE,KAAM;MACVC,EAAE,EAAE,KAAM;MACVC,EAAE,EAAE,KAAM;MACVL,MAAM,EAAEN,IAAK;MACbO,WAAW,EAAE,GAAI;MACjBK,aAAa,EAAC;IAAO,CACtB,CAAC;EAAA,CACC,CAAC;AAEV,CAAC;AAED,eAAef,UAAU","ignoreList":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["Icon"],"sourceRoot":"..\\..\\..\\src","sources":["icon/index.tsx"],"mappings":";;AAAA,OAAOA,IAAI,MAAM,WAAQ;AAEzB,SAASA,IAAI","ignoreList":[]}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
// svg from https://www.iconfont.cn/collections/detail?spm=a313x.7781069.0.da5a778a4&cid=19238
|
|
4
|
+
export const Library = {
|
|
5
|
+
'arrow-left': 'M641.28 278.613333l-45.226667-45.226666-278.634666 278.762666 278.613333 278.485334 45.248-45.269334-233.365333-233.237333z',
|
|
6
|
+
'arrow-right': 'M593.450667 512.128L360.064 278.613333l45.290667-45.226666 278.613333 278.762666L405.333333 790.613333l-45.226666-45.269333z',
|
|
7
|
+
'arrow-up': 'M500.8 461.909333L267.306667 695.296l-45.226667-45.269333 278.741333-278.613334L779.306667 650.026667l-45.248 45.226666z',
|
|
8
|
+
'arrow-down': 'M500.8 604.779L267.307 371.392l-45.227 45.27 278.741 278.613L779.307 416.66l-45.248-45.248z',
|
|
9
|
+
'plus': 'M544 213.333333v266.666667H810.666667v64H544V810.666667h-64V544H213.333333v-64h266.666667V213.333333z',
|
|
10
|
+
'minus': 'M810.666667 480v64H213.333333v-64z',
|
|
11
|
+
'code': 'M541.141333 268.864l61.717334 16.938667-132.394667 482.474666-61.717333-16.938666 132.394666-482.474667zM329.002667 298.666667l44.885333 45.610666-175.36 172.586667 175.04 167.573333-44.266667 46.229334L106.666667 517.504 329.002667 298.666667z m355.882666 0l222.336 218.837333L684.586667 730.666667l-44.266667-46.229334 175.018667-167.573333L640 344.277333 684.885333 298.666667z',
|
|
12
|
+
'check': 'M235.946667 472.938667l-45.226667 45.312 210.090667 209.514666 432.362666-427.690666-45.013333-45.482667-387.157333 382.976z',
|
|
13
|
+
'sorting': 'M438.634667 192v644.202667l-0.810667 5.781333c-1.152 7.210667-2.304 8.704-8.64 17.002667l-7.168 3.925333c-15.914667 8.490667-18.282667 7.168-38.4-3.925333L149.333333 624.533333l45.269334-45.226666 180.032 180.138666V192h64z m216.96 10.005333l231.04 231.146667-45.269334 45.248L661.333333 298.261333V865.706667h-64V226.133333a34.133333 34.133333 0 0 1 58.282667-24.128z',
|
|
14
|
+
'favorites': 'M484.267 272.021l6.634 6.72c5.974 5.974 13.014 12.843 21.099 20.63l9.195-8.918c7.253-7.04 13.44-13.184 18.56-18.432a193.28 193.28 0 0 1 277.44 0c75.904 77.526 76.629 202.795 2.133 281.195L512 853.333 204.672 553.237c-74.475-78.421-73.77-203.69 2.133-281.216a193.28 193.28 0 0 1 277.44 0z m293.162 232.15c46.272-53.76 44.182-136.15-5.973-187.371a129.28 129.28 0 0 0-185.984 0l-15.125 15.104a1687.253 1687.253 0 0 1-4.395 4.31L512 388.18l-49.28-47.445-13.227-12.928-10.965-11.008a129.28 129.28 0 0 0-186.005 0c-51.456 52.565-52.31 137.963-2.198 191.573L512 763.883l261.675-255.531 3.754-4.181z',
|
|
15
|
+
'favorites-fill': 'M484.266667 272.021333l6.634666 6.72c5.973333 5.973333 13.013333 12.842667 21.098667 20.629334l9.194667-8.917334c7.253333-7.04 13.44-13.184 18.56-18.432a193.28 193.28 0 0 1 277.44 0c75.904 77.525333 76.629333 202.794667 2.133333 281.194667L512 853.333333 204.672 553.237333c-74.474667-78.421333-73.770667-203.690667 2.133333-281.216a193.28 193.28 0 0 1 277.44 0z',
|
|
16
|
+
'search': 'M469.333 192c153.174 0 277.334 124.16 277.334 277.333 0 68.054-24.534 130.411-65.216 178.688L846.336 818.24l-48.341 49.877L630.4 695.125a276.053 276.053 0 0 1-161.067 51.542C316.16 746.667 192 622.507 192 469.333S316.16 192 469.333 192z m0 64C351.51 256 256 351.51 256 469.333s95.51 213.334 213.333 213.334 213.334-95.51 213.334-213.334S587.157 256 469.333 256z',
|
|
17
|
+
'arrow-line-up': 'M478.3 927.5V175.2L259 394.5c-10.7 10.7-28.1 10.7-38.7 0l-6.5-6.5c-10.7-10.7-10.7-28.1 0-38.7L481.6 81.4c4.5-9.2 13.4-16 23.9-17.6 7.1-1.5 14.7-0.1 21 4 4 2.4 7.5 5.6 10.1 9.4l0.5 0.5c2.6 2.6 4.6 5.6 5.9 8.8l266.7 266.7c10.7 10.7 10.7 28.1 0 38.7l-6.5 6.5c-10.7 10.7-28.1 10.7-38.7 0l-222.3-222v751.1c0 17.6-14.4 32-32 32-17.5 0-31.9-14.4-31.9-32z',
|
|
18
|
+
'arrow-line-down': 'M478.3 95.2v752.3L259 628.2c-10.7-10.7-28.1-10.7-38.7 0l-6.5 6.5c-10.7 10.7-10.7 28.1 0 38.7l267.9 267.9c4.5 9.2 13.4 16 23.9 17.6 7.1 1.5 14.7 0.1 21-4 4-2.4 7.5-5.6 10.1-9.4l0.5-0.5c2.6-2.6 4.6-5.6 5.9-8.8l266.7-266.7c10.7-10.7 10.7-28.1 0-38.7l-6.5-6.5c-10.7-10.7-28.1-10.7-38.7 0l-222.4 222V95.2c0-17.6-14.4-32-32-32-17.5 0-31.9 14.4-31.9 32z'
|
|
19
|
+
};
|
|
20
|
+
//# sourceMappingURL=library.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["Library"],"sourceRoot":"..\\..\\..\\src","sources":["icon/library.ts"],"mappings":";;AAAA;AACA,OAAO,MAAMA,OAAO,GAAG;EACrB,YAAY,EACV,6HAA6H;EAC/H,aAAa,EACX,8HAA8H;EAChI,UAAU,EACR,0HAA0H;EAC5H,YAAY,EACV,6FAA6F;EAC/F,MAAM,EACJ,uGAAuG;EACzG,OAAO,EAAE,oCAAoC;EAC7C,MAAM,EACJ,8XAA8X;EAChY,OAAO,EACL,8HAA8H;EAChI,SAAS,EACP,kXAAkX;EACpX,WAAW,EACT,ilBAAilB;EACnlB,gBAAgB,EACd,4WAA4W;EAC9W,QAAQ,EACN,2WAA2W;EAC7W,eAAe,EACb,6VAA6V;EAC/V,iBAAiB,EACf;AACJ,CAAC","ignoreList":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":[],"sourceRoot":"..\\..\\src","sources":["index.tsx"],"mappings":";;AAAA,cAAc,2BAAkB","ignoreList":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"type":"module"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"type":"module"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Loading.d.ts","sourceRoot":"","sources":["../../../../src/Loading/Loading.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,MAAM,WAAW,YAAY;IAC3B,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,IAAI,CAAC,EAAE,OAAO,GAAG,OAAO,CAAC;IACzB,SAAS,CAAC,EAAE,OAAO,CAAC;CACrB;AAED,QAAA,MAAM,OAAO,EAAE,KAAK,CAAC,EAAE,CAAC,YAAY,CAGnC,CAAC;AAEF,eAAe,OAAO,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/Loading/index.tsx"],"names":[],"mappings":"AAAA,OAAO,OAAO,MAAM,WAAW,CAAC;AAEhC,OAAO,EACH,OAAO,GACV,CAAC"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Refresh Control Implement
|
|
3
|
+
* Every Control can get props from useRefresh()
|
|
4
|
+
*/
|
|
5
|
+
import React from 'react';
|
|
6
|
+
interface NormalControlProps {
|
|
7
|
+
textConfig?: {
|
|
8
|
+
normal: string;
|
|
9
|
+
release: string;
|
|
10
|
+
refresing: string;
|
|
11
|
+
done: string;
|
|
12
|
+
};
|
|
13
|
+
position: 'top' | 'bottom';
|
|
14
|
+
}
|
|
15
|
+
declare const NormalControl: React.FC<NormalControlProps>;
|
|
16
|
+
export default NormalControl;
|
|
17
|
+
//# sourceMappingURL=BottomContainer.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"BottomContainer.d.ts","sourceRoot":"","sources":["../../../../src/RefreshControl/BottomContainer.tsx"],"names":[],"mappings":"AAAA;;;GAGG;AACH,OAAO,KAAiB,MAAM,OAAO,CAAC;AActC,UAAU,kBAAkB;IACxB,UAAU,CAAC,EAAE;QACT,MAAM,EAAE,MAAM,CAAC;QACf,OAAO,EAAE,MAAM,CAAC;QAChB,SAAS,EAAE,MAAM,CAAC;QAClB,IAAI,EAAE,MAAM,CAAC;KAChB,CAAC;IACF,QAAQ,EAAE,KAAK,GAAG,QAAQ,CAAC;CAC9B;AAED,QAAA,MAAM,aAAa,EAAE,KAAK,CAAC,EAAE,CAAC,kBAAkB,CAwE/C,CAAC;AAWF,eAAe,aAAa,CAAC"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Refresh Control Implement
|
|
3
|
+
* Every Control can get props from useRefresh()
|
|
4
|
+
*/
|
|
5
|
+
import React from 'react';
|
|
6
|
+
interface NormalControlProps {
|
|
7
|
+
textConfig?: {
|
|
8
|
+
normal: string;
|
|
9
|
+
release: string;
|
|
10
|
+
refresing: string;
|
|
11
|
+
done: string;
|
|
12
|
+
};
|
|
13
|
+
position: 'top' | 'bottom';
|
|
14
|
+
textStyle?: any;
|
|
15
|
+
iconColor?: string;
|
|
16
|
+
arrowColor?: string;
|
|
17
|
+
}
|
|
18
|
+
declare const NormalControl: React.FC<NormalControlProps>;
|
|
19
|
+
export default NormalControl;
|
|
20
|
+
//# sourceMappingURL=NormalControl.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"NormalControl.d.ts","sourceRoot":"","sources":["../../../../src/RefreshControl/NormalControl.tsx"],"names":[],"mappings":"AAAA;;;GAGG;AACH,OAAO,KAAmB,MAAM,OAAO,CAAC;AAaxC,UAAU,kBAAkB;IACxB,UAAU,CAAC,EAAE;QACT,MAAM,EAAE,MAAM,CAAC;QACf,OAAO,EAAE,MAAM,CAAC;QAChB,SAAS,EAAE,MAAM,CAAC;QAClB,IAAI,EAAE,MAAM,CAAC;KAChB,CAAC;IACF,QAAQ,EAAE,KAAK,GAAG,QAAQ,CAAC;IAC3B,SAAS,CAAC,EAAE,GAAG,CAAC;IAChB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,UAAU,CAAC,EAAE,MAAM,CAAC;CACvB;AAED,QAAA,MAAM,aAAa,EAAE,KAAK,CAAC,EAAE,CAAC,kBAAkB,CA2E/C,CAAC;AAYF,eAAe,aAAa,CAAC"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { SharedValue } from 'react-native-reanimated';
|
|
3
|
+
import { RefreshStatus } from './type';
|
|
4
|
+
interface RefreshContainerContextProps extends RefreshContainerProps {
|
|
5
|
+
}
|
|
6
|
+
export declare const RefreshContainerContext: React.Context<RefreshContainerContextProps>;
|
|
7
|
+
export declare const useRefresh: () => RefreshContainerContextProps;
|
|
8
|
+
interface RefreshContainerProps {
|
|
9
|
+
transitionY: SharedValue<number>;
|
|
10
|
+
triggleHeight: number;
|
|
11
|
+
refreshStatus: SharedValue<RefreshStatus>;
|
|
12
|
+
children: React.ReactNode;
|
|
13
|
+
offsetTop?: number;
|
|
14
|
+
}
|
|
15
|
+
declare const RefreshContainer: React.FC<RefreshContainerProps>;
|
|
16
|
+
export default RefreshContainer;
|
|
17
|
+
//# sourceMappingURL=RefreshContainer.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"RefreshContainer.d.ts","sourceRoot":"","sources":["../../../../src/RefreshControl/RefreshContainer.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAoC,MAAM,OAAO,CAAC;AAMzD,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC;AAC3D,OAAO,EAAE,aAAa,EAAE,MAAM,QAAQ,CAAC;AAIvC,UAAU,4BAA6B,SAAQ,qBAAqB;CACnE;AAED,eAAO,MAAM,uBAAuB,6CAG/B,CAAC;AACN,eAAO,MAAM,UAAU,oCAA4C,CAAC;AAEpE,UAAU,qBAAqB;IAC3B,WAAW,EAAE,WAAW,CAAC,MAAM,CAAC,CAAC;IACjC,aAAa,EAAE,MAAM,CAAC;IACtB,aAAa,EAAE,WAAW,CAAC,aAAa,CAAC,CAAC;IAC1C,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,SAAS,CAAC,EAAE,MAAM,CAAC;CACtB;AAED,QAAA,MAAM,gBAAgB,EAAE,KAAK,CAAC,EAAE,CAAC,qBAAqB,CAkCrD,CAAC;AAWF,eAAe,gBAAgB,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
interface RefreshContextType {
|
|
3
|
+
isRefreshing: boolean;
|
|
4
|
+
setIsRefreshing: (value: boolean) => void;
|
|
5
|
+
}
|
|
6
|
+
export declare const RefreshProvider: React.FC;
|
|
7
|
+
export declare const useRefresh: () => RefreshContextType;
|
|
8
|
+
export {};
|
|
9
|
+
//# sourceMappingURL=RefreshContext.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"RefreshContext.d.ts","sourceRoot":"","sources":["../../../../src/RefreshControl/RefreshContext.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA4C,MAAM,OAAO,CAAC;AAGjE,UAAU,kBAAkB;IACxB,YAAY,EAAE,OAAO,CAAC;IACtB,eAAe,EAAE,CAAC,KAAK,EAAE,OAAO,KAAK,IAAI,CAAC;CAC7C;AAMD,eAAO,MAAM,eAAe,EAAE,KAAK,CAAC,EAQnC,CAAC;AAGF,eAAO,MAAM,UAAU,QAAO,kBAM7B,CAAC"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { type FlatListProps } from 'react-native';
|
|
3
|
+
import { type SharedValue } from 'react-native-reanimated';
|
|
4
|
+
interface RefreshFlatListProps<ItemT> extends FlatListProps<ItemT> {
|
|
5
|
+
refreshing: boolean;
|
|
6
|
+
refreshComponent: () => React.ReactNode;
|
|
7
|
+
onRefresh: () => void;
|
|
8
|
+
onScroll?: (event: any) => void;
|
|
9
|
+
handleOnLoadMore?: () => void;
|
|
10
|
+
triggleHeight?: number;
|
|
11
|
+
canOffset?: boolean;
|
|
12
|
+
bounces?: boolean;
|
|
13
|
+
offsetY?: number;
|
|
14
|
+
scrollParentRef?: any;
|
|
15
|
+
transitionY?: SharedValue<number>;
|
|
16
|
+
scrollViewParentTransitionY?: SharedValue<number>;
|
|
17
|
+
}
|
|
18
|
+
declare const RefreshFlatList: <ItemT>(props: RefreshFlatListProps<ItemT>) => import("react/jsx-runtime").JSX.Element;
|
|
19
|
+
export default RefreshFlatList;
|
|
20
|
+
//# sourceMappingURL=RefreshFlatList.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"RefreshFlatList.d.ts","sourceRoot":"","sources":["../../../../src/RefreshControl/RefreshFlatList.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAyC,MAAM,OAAO,CAAC;AAC9D,OAAO,EAAc,KAAK,aAAa,EAAY,MAAM,cAAc,CAAC;AAExE,OAAiB,EAYQ,KAAK,WAAW,EACxC,MAAM,yBAAyB,CAAC;AAejC,UAAU,oBAAoB,CAAC,KAAK,CAAE,SAAQ,aAAa,CAAC,KAAK,CAAC;IAC9D,UAAU,EAAE,OAAO,CAAC;IACpB,gBAAgB,EAAE,MAAM,KAAK,CAAC,SAAS,CAAC;IACxC,SAAS,EAAE,MAAM,IAAI,CAAC;IACtB,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,GAAG,KAAK,IAAI,CAAC;IAChC,gBAAgB,CAAC,EAAE,MAAM,IAAI,CAAC;IAC9B,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,eAAe,CAAC,EAAE,GAAG,CAAC;IACtB,WAAW,CAAC,EAAE,WAAW,CAAC,MAAM,CAAC,CAAC;IAClC,2BAA2B,CAAC,EAAE,WAAW,CAAC,MAAM,CAAC,CAAC;CACrD;AAED,QAAA,MAAM,eAAe,GAAI,KAAK,EAAG,OAAO,oBAAoB,CAAC,KAAK,CAAC,4CAiUlE,CAAA;AAED,eAAe,eAAe,CAAC"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { type ScrollViewProps } from 'react-native';
|
|
3
|
+
import { type SharedValue } from 'react-native-reanimated';
|
|
4
|
+
interface RefreshFlatListProps extends ScrollViewProps {
|
|
5
|
+
refreshing: boolean;
|
|
6
|
+
refreshComponent: () => React.ReactNode;
|
|
7
|
+
onRefresh: () => void;
|
|
8
|
+
onScroll?: (event: any) => void;
|
|
9
|
+
handleOnLoadMore?: () => void;
|
|
10
|
+
triggleHeight?: number;
|
|
11
|
+
canOffset?: boolean;
|
|
12
|
+
bounces?: boolean;
|
|
13
|
+
offsetY?: number;
|
|
14
|
+
children: React.ReactNode;
|
|
15
|
+
scrollViewParentTransitionY?: SharedValue<number>;
|
|
16
|
+
scrollParentRef?: any;
|
|
17
|
+
}
|
|
18
|
+
declare const RefreshScrollList: (props: RefreshFlatListProps) => import("react/jsx-runtime").JSX.Element;
|
|
19
|
+
export default RefreshScrollList;
|
|
20
|
+
//# sourceMappingURL=RefreshScrollView.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"RefreshScrollView.d.ts","sourceRoot":"","sources":["../../../../src/RefreshControl/RefreshScrollView.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAyC,MAAM,OAAO,CAAC;AAC9D,OAAO,EAAwB,KAAK,eAAe,EAAE,MAAM,cAAc,CAAC;AAE1E,OAAiB,EAYQ,KAAK,WAAW,EACxC,MAAM,yBAAyB,CAAC;AAejC,UAAU,oBAAqB,SAAQ,eAAe;IAClD,UAAU,EAAE,OAAO,CAAC;IACpB,gBAAgB,EAAE,MAAM,KAAK,CAAC,SAAS,CAAC;IACxC,SAAS,EAAE,MAAM,IAAI,CAAC;IACtB,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,GAAG,KAAK,IAAI,CAAC;IAChC,gBAAgB,CAAC,EAAE,MAAM,IAAI,CAAC;IAC9B,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,2BAA2B,CAAC,EAAE,WAAW,CAAC,MAAM,CAAC,CAAC;IAClD,eAAe,CAAC,EAAE,GAAG,CAAC;CACzB;AAED,QAAA,MAAM,iBAAiB,GAAI,OAAO,oBAAoB,4CAoTrD,CAAC;AAEF,eAAe,iBAAiB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/RefreshControl/index.tsx"],"names":[],"mappings":"AAAA,OAAO,aAAa,MAAM,iBAAiB,CAAC;AAC5C,OAAO,iBAAiB,MAAM,qBAAqB,CAAC;AACpD,OAAO,eAAe,MAAM,mBAAmB,CAAC;AAEhD,OAAO,EAAE,iBAAiB,EAAE,aAAa,EAAE,eAAe,EAAE,CAAC"}
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
import { type SharedValue, type DerivedValue } from 'react-native-reanimated';
|
|
2
|
+
interface SkeletonContextProps {
|
|
3
|
+
/**
|
|
4
|
+
* Refresh Container transitionY
|
|
5
|
+
*/
|
|
6
|
+
transitionY: SharedValue<number>;
|
|
7
|
+
/**
|
|
8
|
+
* ScrollView scroll to the top with velocity. It can continue scroll a little, scrollBounse is a marker to mark the progress
|
|
9
|
+
* If True, scrollView is bounceing, and refresh animation will not triggle
|
|
10
|
+
*/
|
|
11
|
+
scrollBounse: SharedValue<boolean>;
|
|
12
|
+
/**
|
|
13
|
+
* Only transitionY bigger than triggleHeight, refresh animation will triggle
|
|
14
|
+
*/
|
|
15
|
+
triggleHeight: number;
|
|
16
|
+
/**
|
|
17
|
+
* current RefreshContainer is refreshing
|
|
18
|
+
*/
|
|
19
|
+
refreshing: boolean;
|
|
20
|
+
/**
|
|
21
|
+
* RefreshStatus by transitionY
|
|
22
|
+
* When transitionY.value reach some point, it will change
|
|
23
|
+
*/
|
|
24
|
+
refreshStatus: SharedValue<RefreshStatus>;
|
|
25
|
+
/**
|
|
26
|
+
* ScrollView pulling direction
|
|
27
|
+
* 1: down
|
|
28
|
+
* -1: up
|
|
29
|
+
* */
|
|
30
|
+
direction: DerivedValue<1 | -1>;
|
|
31
|
+
/**
|
|
32
|
+
* inside scrollView wheather reach boundary
|
|
33
|
+
*/
|
|
34
|
+
canRefresh: DerivedValue<boolean>;
|
|
35
|
+
}
|
|
36
|
+
export declare const RefreshContainerContext: import("react").Context<SkeletonContextProps>;
|
|
37
|
+
export declare const useRefreshScroll: () => SkeletonContextProps;
|
|
38
|
+
/**
|
|
39
|
+
* Once Refresh LifeCycle:
|
|
40
|
+
* Idle -> Pulling -> Idle: Not reach triggleHeight, fail to refresh
|
|
41
|
+
* Idle -> Pulling -> Reached -> Holding -> Done -> Idle: A compelete refresh
|
|
42
|
+
*/
|
|
43
|
+
export declare enum RefreshStatus {
|
|
44
|
+
/**
|
|
45
|
+
* Refresh normal status
|
|
46
|
+
*/
|
|
47
|
+
Idle = 0,
|
|
48
|
+
/**
|
|
49
|
+
* Refresh is pulling down, and not reach triggleHeight
|
|
50
|
+
*/
|
|
51
|
+
Pulling = 1,
|
|
52
|
+
/**
|
|
53
|
+
* Refresh is pulling down continue, and reached triggleHeight
|
|
54
|
+
*/
|
|
55
|
+
Reached = 2,
|
|
56
|
+
/**
|
|
57
|
+
* Refresh is Refreshing
|
|
58
|
+
*/
|
|
59
|
+
Holding = 3,
|
|
60
|
+
/**
|
|
61
|
+
* Refresh is done
|
|
62
|
+
*/
|
|
63
|
+
Done = 4,
|
|
64
|
+
/**
|
|
65
|
+
* ScrollView Auto Load More
|
|
66
|
+
*/
|
|
67
|
+
AutoLoad = 5
|
|
68
|
+
}
|
|
69
|
+
export {};
|
|
70
|
+
//# sourceMappingURL=type.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"type.d.ts","sourceRoot":"","sources":["../../../../src/RefreshControl/type.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,WAAW,EAAE,KAAK,YAAY,EAAE,MAAM,yBAAyB,CAAC;AAE9E,UAAU,oBAAoB;IAC5B;;OAEG;IACH,WAAW,EAAE,WAAW,CAAC,MAAM,CAAC,CAAC;IACjC;;;OAGG;IACH,YAAY,EAAE,WAAW,CAAC,OAAO,CAAC,CAAC;IACnC;;OAEG;IACH,aAAa,EAAE,MAAM,CAAC;IACtB;;OAEG;IACH,UAAU,EAAE,OAAO,CAAC;IACpB;;;OAGG;IACH,aAAa,EAAE,WAAW,CAAC,aAAa,CAAC,CAAC;IAC1C;;;;UAIM;IACN,SAAS,EAAE,YAAY,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;IAChC;;OAEG;IACH,UAAU,EAAE,YAAY,CAAC,OAAO,CAAC,CAAC;CACnC;AAED,eAAO,MAAM,uBAAuB,+CAEnC,CAAC;AACF,eAAO,MAAM,gBAAgB,4BAA4C,CAAC;AAE1E;;;;GAIG;AACH,oBAAY,aAAa;IACvB;;OAEG;IACH,IAAI,IAAA;IACJ;;OAEG;IACH,OAAO,IAAA;IACP;;OAEG;IACH,OAAO,IAAA;IACP;;OAEG;IACH,OAAO,IAAA;IACP;;OAEG;IACH,IAAI,IAAA;IACJ;;OAEG;IACH,QAAQ,IAAA;CACT"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CommentIcon.d.ts","sourceRoot":"","sources":["../../../../src/icon/CommentIcon.tsx"],"names":[],"mappings":"AAEA,QAAA,MAAM,YAAY,GAAI,OAAO,GAAG,4CAyB/B,CAAC;AACF,eAAe,YAAY,CAAC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { Library } from './library';
|
|
3
|
+
interface IconProps {
|
|
4
|
+
name: keyof typeof Library;
|
|
5
|
+
size?: number;
|
|
6
|
+
color?: string;
|
|
7
|
+
}
|
|
8
|
+
declare const Icon: React.FC<IconProps>;
|
|
9
|
+
export default Icon;
|
|
10
|
+
//# sourceMappingURL=Icon.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Icon.d.ts","sourceRoot":"","sources":["../../../../src/icon/Icon.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAEpC,UAAU,SAAS;IACjB,IAAI,EAAE,MAAM,OAAO,OAAO,CAAC;IAC3B,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED,QAAA,MAAM,IAAI,EAAE,KAAK,CAAC,EAAE,CAAC,SAAS,CAa7B,CAAC;AAEF,eAAe,IAAI,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"MoreIcon.d.ts","sourceRoot":"","sources":["../../../../src/icon/MoreIcon.tsx"],"names":[],"mappings":"AAEA,QAAA,MAAM,YAAY,GAAI,OAAO,GAAG,4CAkC/B,CAAC;AACF,eAAe,YAAY,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Praise.d.ts","sourceRoot":"","sources":["../../../../src/icon/Praise.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,UAAU,aAAa;IACrB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,IAAI,CAAC,EAAE,MAAM,CAAC;CACf;AAED,QAAA,MAAM,QAAQ,EAAE,KAAK,CAAC,EAAE,CAAC,aAAa,CASrC,CAAC;AAEF,eAAe,QAAQ,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SearchIcon.d.ts","sourceRoot":"","sources":["../../../../src/icon/SearchIcon.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,UAAU,eAAe;IACvB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,IAAI,CAAC,EAAE,MAAM,CAAC;CACf;AAED,QAAA,MAAM,UAAU,EAAE,KAAK,CAAC,EAAE,CAAC,eAAe,CAwBzC,CAAC;AAEF,eAAe,UAAU,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/icon/index.tsx"],"names":[],"mappings":"AAAA,OAAO,IAAI,MAAM,QAAQ,CAAC;AAE1B,OAAO,EAAE,IAAI,EAAE,CAAC"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
export declare const Library: {
|
|
2
|
+
'arrow-left': string;
|
|
3
|
+
'arrow-right': string;
|
|
4
|
+
'arrow-up': string;
|
|
5
|
+
'arrow-down': string;
|
|
6
|
+
plus: string;
|
|
7
|
+
minus: string;
|
|
8
|
+
code: string;
|
|
9
|
+
check: string;
|
|
10
|
+
sorting: string;
|
|
11
|
+
favorites: string;
|
|
12
|
+
'favorites-fill': string;
|
|
13
|
+
search: string;
|
|
14
|
+
'arrow-line-up': string;
|
|
15
|
+
'arrow-line-down': string;
|
|
16
|
+
};
|
|
17
|
+
//# sourceMappingURL=library.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"library.d.ts","sourceRoot":"","sources":["../../../../src/icon/library.ts"],"names":[],"mappings":"AACA,eAAO,MAAM,OAAO;;;;;;;;;;;;;;;CA4BnB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/index.tsx"],"names":[],"mappings":"AAAA,cAAc,kBAAkB,CAAC"}
|