esoftplay 0.0.127-a → 0.0.127-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/modules/lib/infinite.tsx +4 -1
- package/modules/lib/list.tsx +2 -0
- package/modules/user/data.ts +1 -1
- package/package.json +1 -1
package/modules/lib/infinite.tsx
CHANGED
|
@@ -27,6 +27,7 @@ export interface LibInfiniteProps {
|
|
|
27
27
|
mainIndex?: string,
|
|
28
28
|
stickyHeaderIndices?: number[],
|
|
29
29
|
bounces?: boolean,
|
|
30
|
+
customHeader?: any,
|
|
30
31
|
staticHeight?: number,
|
|
31
32
|
ItemSeparatorComponent?: any,
|
|
32
33
|
ListEmptyComponent?: any,
|
|
@@ -105,7 +106,7 @@ export default class m extends LibComponent<LibInfiniteProps, LibInfiniteState>{
|
|
|
105
106
|
}
|
|
106
107
|
if (!this.pages.includes(page)) {
|
|
107
108
|
this.pages.push(page)
|
|
108
|
-
new LibCurl(url, post,
|
|
109
|
+
new LibCurl().withHeader(this.props?.customHeader || {})(url, post,
|
|
109
110
|
(res, msg) => {
|
|
110
111
|
if (this.props.isDebug) {
|
|
111
112
|
esp.log(res);
|
|
@@ -219,6 +220,8 @@ export default class m extends LibComponent<LibInfiniteProps, LibInfiniteState>{
|
|
|
219
220
|
}
|
|
220
221
|
}}
|
|
221
222
|
{...this.props}
|
|
223
|
+
contentContainerStyle={this.props?.style}
|
|
224
|
+
style={undefined}
|
|
222
225
|
renderItem={this._renderItem}
|
|
223
226
|
/>
|
|
224
227
|
}
|
package/modules/lib/list.tsx
CHANGED
|
@@ -97,6 +97,8 @@ export default class m extends LibComponent<LibListProps, LibListState> {
|
|
|
97
97
|
ListFooterComponent={this.props.renderFooter && this.props.renderFooter() || this.props.ListFooterComponent}
|
|
98
98
|
{...isStatic()}
|
|
99
99
|
renderItem={this.rowRenderer}
|
|
100
|
+
contentContainerStyle={this.props?.style}
|
|
101
|
+
style={undefined}
|
|
100
102
|
/>
|
|
101
103
|
</View>
|
|
102
104
|
)
|
package/modules/user/data.ts
CHANGED
|
@@ -27,7 +27,7 @@ export default class m {
|
|
|
27
27
|
deleteAll(): void {
|
|
28
28
|
AsyncStorage.getItem("user_data_dependent").then((x) => {
|
|
29
29
|
if (_global?.useGlobalUserDelete) {
|
|
30
|
-
Object.values?.(_global?.useGlobalUserDelete)?.map?.((func) => func?.())
|
|
30
|
+
Object.values?.(_global?.useGlobalUserDelete)?.map?.((func: any) => func?.())
|
|
31
31
|
}
|
|
32
32
|
if (x) {
|
|
33
33
|
AsyncStorage.multiRemove(JSON.parse(x))
|