@draftbit/core 50.2.3 → 50.2.4-573471.2
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/lib/commonjs/components/FlatList.js +1 -0
- package/lib/commonjs/components/SectionList/SectionList.js +1 -1
- package/lib/commonjs/components/SimpleStyleScrollables/SimpleStyleFlatList.js +1 -1
- package/lib/commonjs/components/SwipeableItem/SwipeableList.js +1 -1
- package/lib/typescript/src/components/FlatList.d.ts +5 -0
- package/lib/typescript/src/components/FlatList.js +7 -0
- package/lib/typescript/src/components/FlatList.js.map +1 -0
- package/lib/typescript/src/components/SectionList/SectionList.d.ts +2 -2
- package/lib/typescript/src/components/SectionList/SectionList.js +1 -1
- package/lib/typescript/src/components/SectionList/SectionList.js.map +1 -1
- package/lib/typescript/src/components/SimpleStyleScrollables/SimpleStyleFlatList.d.ts +2 -2
- package/lib/typescript/src/components/SimpleStyleScrollables/SimpleStyleFlatList.js +1 -1
- package/lib/typescript/src/components/SimpleStyleScrollables/SimpleStyleFlatList.js.map +1 -1
- package/lib/typescript/src/components/SimpleStyleScrollables/SimpleStyleSectionList.d.ts +2 -2
- package/lib/typescript/src/components/SimpleStyleScrollables/SimpleStyleSwipeableList.d.ts +2 -2
- package/lib/typescript/src/components/SwipeableItem/SwipeableList.d.ts +2 -2
- package/lib/typescript/src/components/SwipeableItem/SwipeableList.js +1 -1
- package/lib/typescript/src/components/SwipeableItem/SwipeableList.js.map +1 -1
- package/lib/typescript/tsconfig.tsbuildinfo +1 -1
- package/package.json +3 -3
- package/src/components/FlatList.js +7 -0
- package/src/components/FlatList.js.map +1 -0
- package/src/components/FlatList.tsx +21 -0
- package/src/components/SectionList/SectionList.js +1 -1
- package/src/components/SectionList/SectionList.js.map +1 -1
- package/src/components/SectionList/SectionList.tsx +4 -3
- package/src/components/SimpleStyleScrollables/SimpleStyleFlatList.js +1 -1
- package/src/components/SimpleStyleScrollables/SimpleStyleFlatList.js.map +1 -1
- package/src/components/SimpleStyleScrollables/SimpleStyleFlatList.tsx +3 -2
- package/src/components/SimpleStyleScrollables/SimpleStyleSectionList.tsx +1 -1
- package/src/components/SimpleStyleScrollables/SimpleStyleSwipeableList.tsx +1 -1
- package/src/components/SwipeableItem/SwipeableList.js +1 -1
- package/src/components/SwipeableItem/SwipeableList.js.map +1 -1
- package/src/components/SwipeableItem/SwipeableList.tsx +4 -3
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import _objectWithoutProperties from"@babel/runtime/helpers/objectWithoutProperties";var _excluded=["numColumns"];var _this=this,_jsxFileName="/home/runner/work/react-native-jigsaw/react-native-jigsaw/packages/core/src/components/FlatList.tsx";import React from"react";import{FlatList as FlatListstComponent}from"react-native";import{jsx as _jsx}from"react/jsx-runtime";var FlatList=React.forwardRef(function(_ref,ref){var numColumns=_ref.numColumns,rest=_objectWithoutProperties(_ref,_excluded);return _jsx(FlatListstComponent,Object.assign({numColumns:numColumns,ref:ref},rest),numColumns);});export default FlatList;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import _toConsumableArray from"@babel/runtime/helpers/toConsumableArray";import _objectWithoutProperties from"@babel/runtime/helpers/objectWithoutProperties";var _excluded=["sectionKey","stickyHeader","listComponent","data","renderItem","keyExtractor"];var _this=this,_jsxFileName="/home/runner/work/react-native-jigsaw/react-native-jigsaw/packages/core/src/components/SectionList/SectionList.tsx";import React from"react";import{FlashList}from"@shopify/flash-list";import
|
|
1
|
+
import _toConsumableArray from"@babel/runtime/helpers/toConsumableArray";import _objectWithoutProperties from"@babel/runtime/helpers/objectWithoutProperties";var _excluded=["sectionKey","stickyHeader","listComponent","data","renderItem","keyExtractor"];var _this=this,_jsxFileName="/home/runner/work/react-native-jigsaw/react-native-jigsaw/packages/core/src/components/SectionList/SectionList.tsx";import React from"react";import{FlashList}from"@shopify/flash-list";import SectionHeader,{DefaultSectionHeader}from"./SectionHeader";import{flattenReactFragments}from"../../utilities";import FlatList from"../FlatList";import{jsx as _jsx}from"react/jsx-runtime";export var DEFAULT_SECTION="Uncategorized";var SectionList=React.forwardRef(function(_ref,ref){var sectionKey=_ref.sectionKey,_ref$stickyHeader=_ref.stickyHeader,stickyHeader=_ref$stickyHeader===void 0?false:_ref$stickyHeader,_ref$listComponent=_ref.listComponent,listComponent=_ref$listComponent===void 0?"FlatList":_ref$listComponent,dataProp=_ref.data,renderItemProp=_ref.renderItem,keyExtractorProp=_ref.keyExtractor,rest=_objectWithoutProperties(_ref,_excluded);var data=React.useMemo(function(){return Array.isArray(dataProp)?dataProp:[];},[dataProp]);var dataWithSections=React.useMemo(function(){var result=[];var sectionDataItems={};for(var _item of data){var _item$sectionKey;var section=((_item$sectionKey=_item[sectionKey])==null?void 0:_item$sectionKey.toString())||DEFAULT_SECTION;if(sectionDataItems[section]){sectionDataItems[section].push(_item);}else{sectionDataItems[section]=[_item];}}for(var _section in sectionDataItems){result.push({type:"SECTION_ITEM",title:_section});var sectionItems=sectionDataItems[_section].map(function(item){return{type:"DATA_ITEM",data:item};});result.push.apply(result,_toConsumableArray(sectionItems));}return result;},[data,sectionKey]);var sectionHeaderIndicies=React.useMemo(function(){return stickyHeader?dataWithSections.filter(function(item){return item.type==="SECTION_ITEM";}).map(function(item){return dataWithSections.indexOf(item);}):undefined;},[dataWithSections,stickyHeader]);var extractSectionHeader=function extractSectionHeader(element){if(!element){return null;}var props=element.props||{};var children=flattenReactFragments(React.Children.toArray(props.children));if(element.type===SectionHeader){return element;}else{for(var child of children){if(child.type===SectionHeader){return child;}}}return null;};var extractRemainingNonSectionHeader=function extractRemainingNonSectionHeader(element){if(!element){return null;}var props=element.props||{};var children=flattenReactFragments(React.Children.toArray(props.children));if(element.type===SectionHeader){return null;}else{var newChildren=[];for(var child of children){if(child.type!==SectionHeader){newChildren.push(child);}}return React.cloneElement(element,Object.assign({},props,{children:newChildren}));}};var renderItem=function renderItem(_ref2){var item=_ref2.item,index=_ref2.index;switch(item.type){case"SECTION_ITEM":{var renderedItem=renderItemProp({index:index,section:item.title});return extractSectionHeader(renderedItem)||_jsx(DefaultSectionHeader,{title:item.title});}case"DATA_ITEM":{var _renderedItem=renderItemProp({item:item.data,index:index,section:item.data[sectionKey]||DEFAULT_SECTION});return extractRemainingNonSectionHeader(_renderedItem);}}};var keyExtractor=function keyExtractor(item,index){switch(item.type){case"SECTION_ITEM":{return`section_${index.toString()}`;}case"DATA_ITEM":{return(keyExtractorProp==null?void 0:keyExtractorProp(item.data,index))||index.toString();}}};switch(listComponent){case"FlatList":return _jsx(FlatList,Object.assign({ref:ref,stickyHeaderIndices:sectionHeaderIndicies},rest,{data:dataWithSections,renderItem:renderItem,keyExtractor:keyExtractor}));case"FlashList":return _jsx(FlashList,Object.assign({ref:ref,stickyHeaderIndices:sectionHeaderIndicies},rest,{data:dataWithSections,renderItem:renderItem,keyExtractor:keyExtractor}));}});export default SectionList;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import _objectWithoutProperties from"@babel/runtime/helpers/objectWithoutProperties";var _excluded=["style","data"];var _this=this,_jsxFileName="/home/runner/work/react-native-jigsaw/react-native-jigsaw/packages/core/src/components/SimpleStyleScrollables/SimpleStyleFlatList.tsx";import React from"react";import
|
|
1
|
+
import _objectWithoutProperties from"@babel/runtime/helpers/objectWithoutProperties";var _excluded=["style","data"];var _this=this,_jsxFileName="/home/runner/work/react-native-jigsaw/react-native-jigsaw/packages/core/src/components/SimpleStyleScrollables/SimpleStyleFlatList.tsx";import React from"react";import FlatList from"../FlatList";import useSplitContentContainerStyles from"./useSplitContentContainerStyles";import{jsx as _jsx}from"react/jsx-runtime";var SimpleStyleFlatList=React.forwardRef(function(_ref,ref){var styleProp=_ref.style,data=_ref.data,rest=_objectWithoutProperties(_ref,_excluded);var _useSplitContentConta=useSplitContentContainerStyles(styleProp),style=_useSplitContentConta.style,contentContainerStyle=_useSplitContentConta.contentContainerStyle;return _jsx(FlatList,Object.assign({ref:ref,style:style,contentContainerStyle:contentContainerStyle,data:data},rest));});export default SimpleStyleFlatList;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import _slicedToArray from"@babel/runtime/helpers/slicedToArray";import _objectWithoutProperties from"@babel/runtime/helpers/objectWithoutProperties";var _excluded=["disableScrollWhenSwiping","listComponent"];var _this=this,_jsxFileName="/home/runner/work/react-native-jigsaw/react-native-jigsaw/packages/core/src/components/SwipeableItem/SwipeableList.tsx";import React from"react";import{FlashList}from"@shopify/flash-list";import
|
|
1
|
+
import _slicedToArray from"@babel/runtime/helpers/slicedToArray";import _objectWithoutProperties from"@babel/runtime/helpers/objectWithoutProperties";var _excluded=["disableScrollWhenSwiping","listComponent"];var _this=this,_jsxFileName="/home/runner/work/react-native-jigsaw/react-native-jigsaw/packages/core/src/components/SwipeableItem/SwipeableList.tsx";import React from"react";import{FlashList}from"@shopify/flash-list";import FlatList from"../FlatList";import{jsx as _jsx,Fragment as _Fragment}from"react/jsx-runtime";export var SwipeableListContext=React.createContext({onStartSwiping:function onStartSwiping(){},onStopSwiping:function onStopSwiping(){}});var SwipeableList=React.forwardRef(function(_ref,ref){var _ref$disableScrollWhe=_ref.disableScrollWhenSwiping,disableScrollWhenSwiping=_ref$disableScrollWhe===void 0?true:_ref$disableScrollWhe,_ref$listComponent=_ref.listComponent,listComponent=_ref$listComponent===void 0?"FlatList":_ref$listComponent,rest=_objectWithoutProperties(_ref,_excluded);var _React$useState=React.useState(false),_React$useState2=_slicedToArray(_React$useState,2),isSwiping=_React$useState2[0],setIsSwiping=_React$useState2[1];var onStartSwiping=function onStartSwiping(){setIsSwiping(true);};var onStopSwiping=function onStopSwiping(){setIsSwiping(false);};rest.scrollEnabled=disableScrollWhenSwiping?!isSwiping:true;var renderListComponent=function renderListComponent(){switch(listComponent){case"FlatList":return _jsx(FlatList,Object.assign({ref:ref},rest));case"FlashList":return _jsx(FlashList,Object.assign({ref:ref},rest));}};return _jsx(SwipeableListContext.Provider,{value:{onStartSwiping:onStartSwiping,onStopSwiping:onStopSwiping},children:_jsx(_Fragment,{children:renderListComponent()})});});export default SwipeableList;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { FlatList as FlatListstComponent } from "react-native";
|
|
3
|
+
import type { FlatListProps } from "react-native";
|
|
4
|
+
declare const FlatList: React.ForwardRefExoticComponent<FlatListProps<any> & React.RefAttributes<FlatListstComponent<any>>>;
|
|
5
|
+
export default FlatList;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { FlatList as FlatListstComponent } from "react-native";
|
|
3
|
+
const FlatList = React.forwardRef(({ numColumns, ...rest }, ref) => {
|
|
4
|
+
return (React.createElement(FlatListstComponent, { key: numColumns, numColumns: numColumns, ref: ref, ...rest }));
|
|
5
|
+
});
|
|
6
|
+
export default FlatList;
|
|
7
|
+
//# sourceMappingURL=FlatList.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"FlatList.js","sourceRoot":"","sources":["../../../../src/components/FlatList.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,QAAQ,IAAI,mBAAmB,EAAE,MAAM,cAAc,CAAC;AAG/D,MAAM,QAAQ,GAAG,KAAK,CAAC,UAAU,CAC/B,CACE,EAAE,UAAU,EAAE,GAAG,IAAI,EAAoB,EACzC,GAAmC,EACnC,EAAE;IACF,OAAO,CACL,oBAAC,mBAAmB,IAClB,GAAG,EAAE,UAAU,EACf,UAAU,EAAE,UAAU,EACtB,GAAG,EAAE,GAAG,KACJ,IAAI,GACR,CACH,CAAC;AACJ,CAAC,CACF,CAAC;AAEF,eAAe,QAAQ,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import { FlashListProps, FlashList } from "@shopify/flash-list";
|
|
3
|
-
import { FlatListProps, FlatList } from "react-native";
|
|
3
|
+
import { FlatListProps, FlatList as FlatListComponent } from "react-native";
|
|
4
4
|
declare type ListComponentType = "FlatList" | "FlashList";
|
|
5
5
|
interface AdditionalSectionListProps<T> {
|
|
6
6
|
sectionKey: string;
|
|
@@ -20,5 +20,5 @@ declare const SectionList: React.ForwardRefExoticComponent<(FlatListSectionListP
|
|
|
20
20
|
[key: string]: any;
|
|
21
21
|
}> | FlashListSectionListProps<{
|
|
22
22
|
[key: string]: any;
|
|
23
|
-
}>) & React.RefAttributes<
|
|
23
|
+
}>) & React.RefAttributes<FlatListComponent<any> | FlashList<any>>>;
|
|
24
24
|
export default SectionList;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import { FlashList } from "@shopify/flash-list";
|
|
3
|
-
import { FlatList } from "react-native";
|
|
4
3
|
import SectionHeader, { DefaultSectionHeader } from "./SectionHeader";
|
|
5
4
|
import { flattenReactFragments } from "../../utilities";
|
|
5
|
+
import FlatList from "../FlatList";
|
|
6
6
|
export const DEFAULT_SECTION = "Uncategorized";
|
|
7
7
|
const SectionList = React.forwardRef(({ sectionKey, stickyHeader = false, listComponent = "FlatList", data: dataProp, renderItem: renderItemProp, keyExtractor: keyExtractorProp, ...rest }, ref) => {
|
|
8
8
|
const data = React.useMemo(() => (Array.isArray(dataProp) ? dataProp : []), [dataProp]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SectionList.js","sourceRoot":"","sources":["../../../../../src/components/SectionList/SectionList.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAkB,SAAS,EAAE,MAAM,qBAAqB,CAAC;
|
|
1
|
+
{"version":3,"file":"SectionList.js","sourceRoot":"","sources":["../../../../../src/components/SectionList/SectionList.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAkB,SAAS,EAAE,MAAM,qBAAqB,CAAC;AAEhE,OAAO,aAAa,EAAE,EAAE,oBAAoB,EAAE,MAAM,iBAAiB,CAAC;AACtE,OAAO,EAAE,qBAAqB,EAAE,MA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C,CAAC;aACvD;SACF;IACH,CAAC,CAAC;IAEF,MAAM,YAAY,GAAG,CAAC,IAAwB,EAAE,KAAa,EAAE,EAAE;QAC/D,QAAQ,IAAI,CAAC,IAAI,EAAE;YACjB,KAAK,cAAc,CAAC,CAAC;gBACnB,OAAO,WAAW,KAAK,CAAC,QAAQ,EAAE,EAAE,CAAC;aACtC;YACD,KAAK,WAAW,CAAC,CAAC;gBAChB,OAAO,CAAA,gBAAgB,aAAhB,gBAAgB,uBAAhB,gBAAgB,CAAG,IAAI,CAAC,IAAI,EAAE,KAAK,CAAC,KAAI,KAAK,CAAC,QAAQ,EAAE,CAAC;aACjE;SACF;IACH,CAAC,CAAC;IAEF,QAAQ,aAAa,EAAE;QACrB,KAAK,UAAU;YACb,OAAO,CACL,oBAAC,QAAQ,IACP,GAAG,EAAE,GAAmC,EACxC,mBAAmB,EAAE,qBAAqB,KACrC,IAA0C,EAC/C,IAAI,EAAE,gBAAgB,EACtB,UAAU,EAAE,UAAU,EACtB,YAAY,EAAE,YAAY,GAC1B,CACH,CAAC;QACJ,KAAK,WAAW;YACd,OAAO,CACL,oBAAC,SAAS,IACR,GAAG,EAAE,GAA+C,EACpD,mBAAmB,EAAE,qBAAqB,KACrC,IAA2C,EAChD,IAAI,EAAE,gBAAgB,EACtB,UAAU,EAAE,UAAU,EACtB,YAAY,EAAE,YAAY,GAC1B,CACH,CAAC;KACL;AACH,CAAC,CACF,CAAC;AAEF,eAAe,WAAW,CAAC"}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
-
import { FlatList } from "react-native";
|
|
2
|
+
import { FlatList as FlatListComponent } from "react-native";
|
|
3
3
|
import type { FlatListProps } from "react-native";
|
|
4
4
|
/**
|
|
5
5
|
* A FlatList wrapper that takes a single `style` prop and internally extracts
|
|
6
6
|
* the appropriate style keys into the `contentContainerStyle`
|
|
7
7
|
*/
|
|
8
|
-
declare const SimpleStyleFlatList: React.ForwardRefExoticComponent<Omit<FlatListProps<unknown>, "contentContainerStyle"> & React.RefAttributes<
|
|
8
|
+
declare const SimpleStyleFlatList: React.ForwardRefExoticComponent<Omit<FlatListProps<unknown>, "contentContainerStyle"> & React.RefAttributes<FlatListComponent<any>>>;
|
|
9
9
|
export default SimpleStyleFlatList;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
-
import
|
|
2
|
+
import FlatList from "../FlatList";
|
|
3
3
|
import useSplitContentContainerStyles from "./useSplitContentContainerStyles";
|
|
4
4
|
/**
|
|
5
5
|
* A FlatList wrapper that takes a single `style` prop and internally extracts
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SimpleStyleFlatList.js","sourceRoot":"","sources":["../../../../../src/components/SimpleStyleScrollables/SimpleStyleFlatList.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,
|
|
1
|
+
{"version":3,"file":"SimpleStyleFlatList.js","sourceRoot":"","sources":["../../../../../src/components/SimpleStyleScrollables/SimpleStyleFlatList.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,QAAQ,MAAM,aAAa,CAAC;AAGnC,OAAO,8BAA8B,MAAM,kCAAkC,CAAC;AAE9E;;;GAGG;AACH,MAAM,mBAAmB,GAAG,KAAK,CAAC,UAAU,CAC1C,CACE,EACE,KAAK,EAAE,SAAS,EAChB,IAAI,EACJ,GAAG,IAAI,EACyC,EAClD,GAAiC,EACjC,EAAE;IACF,MAAM,EAAE,KAAK,EAAE,qBAAqB,EAAE,GACpC,8BAA8B,CAAC,SAAS,CAAC,CAAC;IAE5C,OAAO,CACL,oBAAC,QAAQ,IACP,GAAG,EAAE,GAAG,EACR,KAAK,EAAE,KAAK,EACZ,qBAAqB,EAAE,qBAAqB,EAC5C,IAAI,EAAE,IAAI,KACN,IAAI,GACR,CACH,CAAC;AACJ,CAAC,CACF,CAAC;AAEF,eAAe,mBAAmB,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import type { FlatListSectionListProps, FlashListSectionListProps } from "../SectionList";
|
|
3
|
-
import { FlatList } from "react-native
|
|
3
|
+
import { FlatList } from "react-native";
|
|
4
4
|
import { FlashList } from "@shopify/flash-list";
|
|
5
5
|
/**
|
|
6
6
|
* A SectionList wrapper that takes a single `style` prop and internally extracts
|
|
@@ -10,5 +10,5 @@ declare const SimpleStyleSectionList: React.ForwardRefExoticComponent<Omit<FlatL
|
|
|
10
10
|
[key: string]: any;
|
|
11
11
|
}> | FlashListSectionListProps<{
|
|
12
12
|
[key: string]: any;
|
|
13
|
-
}>, "contentContainerStyle"> & React.RefAttributes<
|
|
13
|
+
}>, "contentContainerStyle"> & React.RefAttributes<FlatList<any> | FlashList<any>>>;
|
|
14
14
|
export default SimpleStyleSectionList;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import type { FlashListSwipeableListProps, FlatListSwipeableListProps } from "../SwipeableItem";
|
|
3
|
-
import { FlatList } from "react-native
|
|
3
|
+
import { FlatList } from "react-native";
|
|
4
4
|
import { FlashList } from "@shopify/flash-list";
|
|
5
5
|
/**
|
|
6
6
|
* A SwipeableList wrapper that takes a single `style` prop and internally extracts
|
|
@@ -10,5 +10,5 @@ declare const SimpleStyleSwipeableList: React.ForwardRefExoticComponent<Omit<Fla
|
|
|
10
10
|
[key: string]: any;
|
|
11
11
|
}> | FlatListSwipeableListProps<{
|
|
12
12
|
[key: string]: any;
|
|
13
|
-
}>, "contentContainerStyle"> & React.RefAttributes<
|
|
13
|
+
}>, "contentContainerStyle"> & React.RefAttributes<FlatList<any> | FlashList<any>>>;
|
|
14
14
|
export default SimpleStyleSwipeableList;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import { FlashListProps, FlashList } from "@shopify/flash-list";
|
|
3
|
-
import { FlatListProps, FlatList } from "react-native";
|
|
3
|
+
import { FlatListProps, FlatList as FlatListComponent } from "react-native";
|
|
4
4
|
declare type ListComponentType = "FlatList" | "FlashList";
|
|
5
5
|
interface AdditionalSwipeableListProps {
|
|
6
6
|
disableScrollWhenSwiping?: boolean;
|
|
@@ -13,5 +13,5 @@ declare type SwipeableListContextType = {
|
|
|
13
13
|
onStopSwiping: () => void;
|
|
14
14
|
};
|
|
15
15
|
export declare const SwipeableListContext: React.Context<SwipeableListContextType>;
|
|
16
|
-
declare const SwipeableList: React.ForwardRefExoticComponent<(FlashListSwipeableListProps<object> | FlatListSwipeableListProps<object>) & React.RefAttributes<
|
|
16
|
+
declare const SwipeableList: React.ForwardRefExoticComponent<(FlashListSwipeableListProps<object> | FlatListSwipeableListProps<object>) & React.RefAttributes<FlatListComponent<any> | FlashList<any>>>;
|
|
17
17
|
export default SwipeableList;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import { FlashList } from "@shopify/flash-list";
|
|
3
|
-
import
|
|
3
|
+
import FlatList from "../FlatList";
|
|
4
4
|
export const SwipeableListContext = React.createContext({
|
|
5
5
|
onStartSwiping: () => { },
|
|
6
6
|
onStopSwiping: () => { },
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SwipeableList.js","sourceRoot":"","sources":["../../../../../src/components/SwipeableItem/SwipeableList.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAkB,SAAS,EAAE,MAAM,qBAAqB,CAAC;
|
|
1
|
+
{"version":3,"file":"SwipeableList.js","sourceRoot":"","sources":["../../../../../src/components/SwipeableItem/SwipeableList.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAkB,SAAS,EAAE,MAAM,qBAAqB,CAAC;AAEhE,OAAO,QAAQ,MAAM,aAAa,CAAC;AAoBnC,MAAM,CAAC,MAAM,oBAAoB,GAC/B,KAA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