esoftplay 0.0.141-a → 0.0.141-c
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/bin/build.js +1 -1
- package/modules/lib/infinite.tsx +2 -0
- package/package.json +1 -1
package/bin/build.js
CHANGED
|
@@ -319,7 +319,7 @@ export default UserIndex`;
|
|
|
319
319
|
'react-fast-compare',
|
|
320
320
|
'react-native-gesture-handler',
|
|
321
321
|
'react-native-awesome-gallery',
|
|
322
|
-
'react-native-fast-image',
|
|
322
|
+
// 'react-native-fast-image',
|
|
323
323
|
'react-native-keyboard-controller',
|
|
324
324
|
'react-native-mmkv',
|
|
325
325
|
'react-native-pan-pinch-view',
|
package/modules/lib/infinite.tsx
CHANGED
|
@@ -130,6 +130,7 @@ export default class m extends LibComponent<LibInfiniteProps, LibInfiniteState>
|
|
|
130
130
|
this.isStop = true
|
|
131
131
|
this.setState((state: LibInfiniteState, props: LibInfiniteProps) => {
|
|
132
132
|
return {
|
|
133
|
+
isStop: this.isStop,
|
|
133
134
|
error: this.props.error || esp.lang("lib/infinite", "empty_data"),
|
|
134
135
|
data: page == 0
|
|
135
136
|
? []
|
|
@@ -142,6 +143,7 @@ export default class m extends LibComponent<LibInfiniteProps, LibInfiniteState>
|
|
|
142
143
|
this.setState((state: LibInfiniteState, props: LibInfiniteProps) => {
|
|
143
144
|
const latestData = [...state.data, ...mainIndex.list]
|
|
144
145
|
return {
|
|
146
|
+
isStop: this.isStop,
|
|
145
147
|
error: '',
|
|
146
148
|
data: page == 0
|
|
147
149
|
? (typeof this.props?.filterData == 'function' ? mainIndex.list.filter(this.props.filterData) : mainIndex.list)
|