esoftplay 0.0.115-o → 0.0.115-p
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.
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// withHooks
|
|
2
2
|
|
|
3
|
-
import { FlashList } from "@shopify/flash-list";
|
|
3
|
+
// import { FlashList } from "@shopify/flash-list";
|
|
4
4
|
import { LibIcon, LibLoading, LibNavigation, LibObject, LibStyle, LibTextstyle, useSafeState } from 'esoftplay';
|
|
5
5
|
import * as MediaLibrary from 'expo-media-library';
|
|
6
6
|
import React, { useEffect } from 'react';
|
|
@@ -72,7 +72,7 @@ export default function m(props: LibImage_multiProps): any {
|
|
|
72
72
|
}} />
|
|
73
73
|
)
|
|
74
74
|
const AutoLayoutViewNativeComponent = require("@shopify/flash-list/src/native/auto-layout/AutoLayoutViewNativeComponent")
|
|
75
|
-
const List = !!AutoLayoutViewNativeComponent ? FlashList : FlatList
|
|
75
|
+
const List = /* !!AutoLayoutViewNativeComponent ? FlashList : */ FlatList
|
|
76
76
|
|
|
77
77
|
return (
|
|
78
78
|
<View style={{ flex: 1, backgroundColor: "white" }} >
|
package/modules/lib/infinite.tsx
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// noPage
|
|
2
2
|
|
|
3
|
-
import { FlashList } from "@shopify/flash-list";
|
|
3
|
+
// import { FlashList } from "@shopify/flash-list";
|
|
4
4
|
import { esp, LibComponent, LibCurl, LibListItemLayout, LibLoading, LibStyle, LibTextstyle } from 'esoftplay';
|
|
5
5
|
import React from 'react';
|
|
6
6
|
import isEqual from 'react-fast-compare';
|
|
@@ -173,7 +173,7 @@ export default class m extends LibComponent<LibInfiniteProps, LibInfiniteState>{
|
|
|
173
173
|
const { data, error } = this.state
|
|
174
174
|
const { errorView, refreshEnabled } = this.props
|
|
175
175
|
const AutoLayoutViewNativeComponent = require("@shopify/flash-list/src/native/auto-layout/AutoLayoutViewNativeComponent")
|
|
176
|
-
const List = !!AutoLayoutViewNativeComponent ? FlashList : FlatList
|
|
176
|
+
const List = /* !!AutoLayoutViewNativeComponent ? FlashList : */ FlatList
|
|
177
177
|
return (
|
|
178
178
|
<View style={{ flex: 1 }} >
|
|
179
179
|
{
|
package/modules/lib/list.tsx
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// noPage
|
|
2
2
|
|
|
3
3
|
|
|
4
|
-
import { FlashList } from "@shopify/flash-list";
|
|
4
|
+
// import { FlashList } from "@shopify/flash-list";
|
|
5
5
|
import { LibComponent } from "esoftplay";
|
|
6
6
|
import React from "react";
|
|
7
7
|
import { FlatList, View } from 'react-native';
|
|
@@ -77,7 +77,7 @@ export default class EList extends LibComponent<LibListProps, LibListState> {
|
|
|
77
77
|
return ({ getItemLayout: (data, index) => this.props.staticHeight ? ({ length: this.props.staticHeight, offset: this.props.staticHeight, index: index }) : undefined })
|
|
78
78
|
}
|
|
79
79
|
const AutoLayoutViewNativeComponent = require("@shopify/flash-list/src/native/auto-layout/AutoLayoutViewNativeComponent")
|
|
80
|
-
const List = !!AutoLayoutViewNativeComponent ? FlashList : FlatList
|
|
80
|
+
const List = /* !!AutoLayoutViewNativeComponent ? FlashList : */ FlatList
|
|
81
81
|
return (
|
|
82
82
|
<View ref={(e) => this.view = e} style={[{ flex: 1 }]} >
|
|
83
83
|
<List
|