esoftplay 0.0.107-a → 0.0.107-e
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/esp.ts +1 -0
- package/modules/lib/datepicker.tsx +11 -11
- package/modules/lib/infinite.tsx +2 -1
- package/modules/user/data.ts +3 -1
- package/package.json +1 -1
package/esp.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { esp, LibLocale, UserRoutes } from 'esoftplay';
|
|
2
2
|
import Constants from 'expo-constants';
|
|
3
3
|
import { LogBox, Platform } from 'react-native';
|
|
4
|
+
import 'react-native-reanimated';
|
|
4
5
|
import _assets from './cache/assets';
|
|
5
6
|
import navs from './cache/navigations';
|
|
6
7
|
import routers from './cache/routers';
|
|
@@ -164,17 +164,17 @@ export default function m(props: LibDatepickerProps): any {
|
|
|
164
164
|
</TouchableOpacity>
|
|
165
165
|
</View>
|
|
166
166
|
<View style={{ height: 175, flexDirection: 'row' }} >
|
|
167
|
-
<View style={{ width:
|
|
167
|
+
<View style={{ width: showDateView ? undefined : 0, flex: showDateView ? 1 : 0, }} >
|
|
168
168
|
<ScrollPicker
|
|
169
|
-
ref={
|
|
170
|
-
dataSource={
|
|
171
|
-
selectedIndex={
|
|
169
|
+
ref={refDate}
|
|
170
|
+
dataSource={dates}
|
|
171
|
+
selectedIndex={dates.indexOf(date)}
|
|
172
172
|
itemHeight={35}
|
|
173
173
|
wrapperHeight={175}
|
|
174
174
|
wrapperColor={'#ffffff'}
|
|
175
175
|
highlightColor={'#c8c7cc'}
|
|
176
176
|
renderItem={itemRenderer}
|
|
177
|
-
onValueChange={
|
|
177
|
+
onValueChange={onDateChange}
|
|
178
178
|
/>
|
|
179
179
|
</View>
|
|
180
180
|
<View style={{ width: showMonthView ? undefined : 0, flex: showMonthView ? 1 : 0, }} >
|
|
@@ -190,24 +190,24 @@ export default function m(props: LibDatepickerProps): any {
|
|
|
190
190
|
onValueChange={onMonthChange}
|
|
191
191
|
/>
|
|
192
192
|
</View>
|
|
193
|
-
<View style={{ width:
|
|
193
|
+
<View style={{ width: showYearView ? undefined : 0, flex: showYearView ? 1 : 0, }} >
|
|
194
194
|
<ScrollPicker
|
|
195
|
-
ref={
|
|
196
|
-
dataSource={
|
|
197
|
-
selectedIndex={
|
|
195
|
+
ref={refYear}
|
|
196
|
+
dataSource={years}
|
|
197
|
+
selectedIndex={years.indexOf(year)}
|
|
198
198
|
itemHeight={35}
|
|
199
199
|
wrapperHeight={175}
|
|
200
200
|
wrapperColor={'#ffffff'}
|
|
201
201
|
highlightColor={'#c8c7cc'}
|
|
202
202
|
renderItem={itemRenderer}
|
|
203
|
-
onValueChange={
|
|
203
|
+
onValueChange={onYearChange}
|
|
204
204
|
/>
|
|
205
205
|
</View>
|
|
206
206
|
</View>
|
|
207
207
|
<LinearGradient
|
|
208
208
|
start={{ x: 1, y: 0 }}
|
|
209
209
|
end={{ x: 1, y: 1 }}
|
|
210
|
-
colors={['rgba(255,255,255,1)','rgba(255,255,255,0.8)', 'rgba(255,255,255,0)','rgba(255,255,255,0.8)', 'rgba(255,255,255,1)']}
|
|
210
|
+
colors={['rgba(255,255,255,1)', 'rgba(255,255,255,0.8)', 'rgba(255,255,255,0)', 'rgba(255,255,255,0.8)', 'rgba(255,255,255,1)']}
|
|
211
211
|
pointerEvents='none' style={{ height: 175, position: 'absolute', top: 44, bottom: 0, left: 0, right: 0 }} />
|
|
212
212
|
</View>
|
|
213
213
|
)
|
package/modules/lib/infinite.tsx
CHANGED
|
@@ -16,6 +16,7 @@ export interface LibInfiniteProps {
|
|
|
16
16
|
onResult?: (res: any, uri: string) => void,
|
|
17
17
|
filterData?: (item: any, index: number, array: any[]) => boolean,
|
|
18
18
|
error?: string,
|
|
19
|
+
LoadingView?: any,
|
|
19
20
|
errorView?: ((msg: string) => any) | any,
|
|
20
21
|
mainIndex?: string,
|
|
21
22
|
stickyHeaderIndices?: number[],
|
|
@@ -174,7 +175,7 @@ export default class m extends LibComponent<LibInfiniteProps, LibInfiniteState>{
|
|
|
174
175
|
<View style={{ flex: 1 }} >
|
|
175
176
|
{
|
|
176
177
|
(!data || data.length) == 0 && !this.isStop ?
|
|
177
|
-
<LibLoading />
|
|
178
|
+
this.props.LoadingView || <LibLoading />
|
|
178
179
|
:
|
|
179
180
|
<FlatList
|
|
180
181
|
ref={this.flatlist}
|
package/modules/user/data.ts
CHANGED
|
@@ -28,7 +28,9 @@ export default class m {
|
|
|
28
28
|
|
|
29
29
|
deleteAll(): void {
|
|
30
30
|
AsyncStorage.getItem("user_data_dependent").then((x) => {
|
|
31
|
-
|
|
31
|
+
if (_global?.useGlobalUserDelete) {
|
|
32
|
+
Object.values?.(_global?.useGlobalUserDelete)?.map?.((func) => func?.())
|
|
33
|
+
}
|
|
32
34
|
if (x) AsyncStorage.multiRemove(JSON.parse(x))
|
|
33
35
|
})
|
|
34
36
|
}
|