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.
@@ -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
  }
@@ -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
  )
@@ -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))
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "esoftplay",
3
- "version": "0.0.127-a",
3
+ "version": "0.0.127-c",
4
4
  "description": "embedding data from esoftplay framework (web based) into mobile app",
5
5
  "main": "cache/index.js",
6
6
  "types": "../../index.d.ts",