@fto-consult/expo-ui 6.59.0 → 6.59.2
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/babel.config.js +1 -1
- package/eas.json +18 -0
- package/electron/expo-ui.json +133 -47
- package/package.json +1 -1
- package/src/components/Button/index.js +1 -1
- package/src/components/List/BigList.js +1 -0
- package/src/components/List/Common.js +18 -5
- package/src/screens/Help/openLibraries.js +1 -1
package/babel.config.js
CHANGED
package/eas.json
ADDED
@@ -0,0 +1,18 @@
|
|
1
|
+
{
|
2
|
+
"cli": {
|
3
|
+
"version": ">= 5.4.0"
|
4
|
+
},
|
5
|
+
"build": {
|
6
|
+
"development": {
|
7
|
+
"developmentClient": true,
|
8
|
+
"distribution": "internal"
|
9
|
+
},
|
10
|
+
"preview": {
|
11
|
+
"distribution": "internal"
|
12
|
+
},
|
13
|
+
"production": {}
|
14
|
+
},
|
15
|
+
"submit": {
|
16
|
+
"production": {}
|
17
|
+
}
|
18
|
+
}
|
package/electron/expo-ui.json
CHANGED
@@ -1,47 +1,133 @@
|
|
1
|
-
{
|
2
|
-
"name": "
|
3
|
-
"version": "
|
4
|
-
"
|
5
|
-
"
|
6
|
-
"
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
"
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
"
|
26
|
-
"
|
27
|
-
"ios": "
|
28
|
-
"
|
29
|
-
"
|
30
|
-
"
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
"
|
35
|
-
"
|
36
|
-
|
37
|
-
|
38
|
-
"
|
39
|
-
"
|
40
|
-
|
41
|
-
|
42
|
-
"
|
43
|
-
"
|
44
|
-
"
|
45
|
-
"
|
46
|
-
|
47
|
-
|
1
|
+
{
|
2
|
+
"name": "@fto-consult/expo-ui",
|
3
|
+
"version": "6.59.0",
|
4
|
+
"description": "Bibliothèque de composants UI Expo,react-native",
|
5
|
+
"main": "main",
|
6
|
+
"scripts": {
|
7
|
+
"clear-npx-cache": "npx clear-npx-cache",
|
8
|
+
"publish1": "npm publish --access=public",
|
9
|
+
"unpublish": "npm -f unpublish @fto-consult/expo-ui",
|
10
|
+
"build-web": "",
|
11
|
+
"start": "npx expo start --dev --no-minify",
|
12
|
+
"start-d": "npx expo start -c --no-dev --no-minify",
|
13
|
+
"start-p": "npm run start-d",
|
14
|
+
"expo-start-client": "npx expo start --dev --no-minify --dev-client",
|
15
|
+
"start-m": "npx expo start - c--dev--no -minify",
|
16
|
+
"android": "npx expo start --android -c",
|
17
|
+
"ios": "npx expo start --ios",
|
18
|
+
"web": "npx expo start --web",
|
19
|
+
"web-c": "npx expo start --web -c",
|
20
|
+
"eject": "expo eject",
|
21
|
+
"emulator": "npm run android-emulator",
|
22
|
+
"web-server": "npx serve web-build",
|
23
|
+
"build-android": "eas build --clear-cache -p android --profile preview",
|
24
|
+
"build-android-local": "eas build --platform android --local",
|
25
|
+
"build-android-dist": "eas build --clear-cache -p android",
|
26
|
+
"build-ios": "eas build --clear-cache -p ios --profile preview",
|
27
|
+
"build-ios-dist": "eas build --clear-cache -p ios",
|
28
|
+
"install-apk": "adb -s emulator-5554 install myapp.apk",
|
29
|
+
"android-emulator": "emulator -avd EMULATOR",
|
30
|
+
"flipper": "npx cross-env METRO_SERVER_PORT=19000 E:\\Studies\\react-native\\debugger\\Flipper-win\\Flipper.exe",
|
31
|
+
"test:build": "electron-webpack && electron-builder --dir -c.compression=store -c.mac.identity=null",
|
32
|
+
"compile-electron": "webpack --env platform=electron",
|
33
|
+
"compile-electron-p": "webpack --config ./electron/webpack.config.js --mode=production",
|
34
|
+
"electron": "electron ./electron",
|
35
|
+
"logcat": "adb -d logcat com.ftc.apps.salite1:E > errors.txt",
|
36
|
+
"logcat-export": "adb -d logcat com.ftc.apps.salite1 *:S > logcat.txt",
|
37
|
+
"electron-c": "npm run compile-electron && npm run electron",
|
38
|
+
"electron-p": "npm run compile-electron-p && npm run electron",
|
39
|
+
"update-app-version": "node ./update-app-version.js",
|
40
|
+
"find-licenses": "node ./find-licenses.js",
|
41
|
+
"fix-dependencies": "expo-cli doctor --fix-dependencies",
|
42
|
+
"expo-fix": "npx expo install --fix",
|
43
|
+
"update-apexchart": "node ./bin/update-appex-chart.js",
|
44
|
+
"update-appexchart": "npm run update-apexchart",
|
45
|
+
"delete-node-modules": "rimraf ./**/node_modules",
|
46
|
+
"dev": "npx expo start --no-dev --minify -c",
|
47
|
+
"modifier-url-remote-git": "git remote set-url origin 'https://borispipo@github.com/borispipo/smart-eneo.git'",
|
48
|
+
"update": "npm i expo @emotion/native@latest react-native-big-list@latest apexcharts@latest file-saver@latest fs-extra@latest google-libphonenumber@latest @pchmn/expo-material3-theme@latest @emotion/native@latest @fto-consult/common@latest @react-navigation/stack react-native-blob-util react-native-iphone-x-helper@latest react-native-mime-types@latest react-native-paper@latest react-native-paper-dates@latest @react-navigation/native@latest @react-navigation/native-stack@latest react-virtuoso@latest tippy.js@latest websql@latest xlsx@latest react-native-web@latest react-dom@latest && npx expo install --fix && npm run update-apexchart && npm run find-licenses"
|
49
|
+
},
|
50
|
+
"bin": {
|
51
|
+
"expo-ui": "./bin/index.js"
|
52
|
+
},
|
53
|
+
"repository": {
|
54
|
+
"type": "git",
|
55
|
+
"url": "git+https://github.com/borispipo/expo-ui.git"
|
56
|
+
},
|
57
|
+
"keywords": [
|
58
|
+
"Expo",
|
59
|
+
"React-Native"
|
60
|
+
],
|
61
|
+
"author": "Boris Fouomene",
|
62
|
+
"license": "ISC",
|
63
|
+
"bugs": {
|
64
|
+
"url": "https://github.com/borispipo/expo-ui/issues"
|
65
|
+
},
|
66
|
+
"homepage": "https://github.com/borispipo/expo-ui#readme",
|
67
|
+
"dependencies": {
|
68
|
+
"@emotion/native": "^11.11.0",
|
69
|
+
"@emotion/react": "^11.11.1",
|
70
|
+
"@expo/html-elements": "^0.5.1",
|
71
|
+
"@expo/vector-icons": "^13.0.0",
|
72
|
+
"@faker-js/faker": "^8.0.2",
|
73
|
+
"@fto-consult/common": "^3.53.0",
|
74
|
+
"@pchmn/expo-material3-theme": "^1.3.1",
|
75
|
+
"@react-native-async-storage/async-storage": "1.18.2",
|
76
|
+
"@react-native-community/datetimepicker": "7.2.0",
|
77
|
+
"@react-native-community/netinfo": "9.3.10",
|
78
|
+
"@react-native/assets-registry": "^0.72.0",
|
79
|
+
"@react-navigation/native": "^6.1.8",
|
80
|
+
"@react-navigation/native-stack": "^6.9.14",
|
81
|
+
"@react-navigation/stack": "^6.3.18",
|
82
|
+
"@shopify/flash-list": "1.4.3",
|
83
|
+
"apexcharts": "^3.44.0",
|
84
|
+
"expo": "^49.0.15",
|
85
|
+
"expo-camera": "~13.4.4",
|
86
|
+
"expo-clipboard": "~4.3.1",
|
87
|
+
"expo-font": "~11.4.0",
|
88
|
+
"expo-image-picker": "~14.3.2",
|
89
|
+
"expo-linking": "~5.0.2",
|
90
|
+
"expo-sqlite": "~11.3.3",
|
91
|
+
"expo-status-bar": "~1.6.0",
|
92
|
+
"expo-system-ui": "~2.4.0",
|
93
|
+
"expo-web-browser": "~12.3.2",
|
94
|
+
"file-saver": "^2.0.5",
|
95
|
+
"fs-extra": "^11.1.1",
|
96
|
+
"google-libphonenumber": "^3.2.33",
|
97
|
+
"htmlparser2-without-node-native": "^3.9.2",
|
98
|
+
"is-plain-obj": "^4.1.0",
|
99
|
+
"js-base64": "^3.7.5",
|
100
|
+
"pdfmake": "^0.2.7",
|
101
|
+
"process": "^0.11.10",
|
102
|
+
"prop-types": "^15.8.1",
|
103
|
+
"react": "^18.2.0",
|
104
|
+
"react-content-loader": "^6.2.1",
|
105
|
+
"react-dom": "^18.2.0",
|
106
|
+
"react-native": "0.72.6",
|
107
|
+
"react-native-big-list": "^1.6.1",
|
108
|
+
"react-native-blob-util": "^0.18.6",
|
109
|
+
"react-native-gesture-handler": "~2.12.0",
|
110
|
+
"react-native-iphone-x-helper": "^1.3.1",
|
111
|
+
"react-native-mime-types": "^2.4.0",
|
112
|
+
"react-native-paper": "^5.11.0",
|
113
|
+
"react-native-paper-dates": "^0.20.1",
|
114
|
+
"react-native-reanimated": "~3.3.0",
|
115
|
+
"react-native-safe-area-context": "4.6.3",
|
116
|
+
"react-native-screens": "~3.22.0",
|
117
|
+
"react-native-svg": "13.9.0",
|
118
|
+
"react-native-web": "^0.19.9",
|
119
|
+
"react-native-webview": "13.2.2",
|
120
|
+
"react-virtuoso": "^4.6.2",
|
121
|
+
"sharp-cli": "^2.1.0",
|
122
|
+
"tippy.js": "^6.3.7",
|
123
|
+
"websql": "^2.0.3",
|
124
|
+
"xlsx": "^0.18.5"
|
125
|
+
},
|
126
|
+
"devDependencies": {
|
127
|
+
"@expo/metro-config": "^0.10.7",
|
128
|
+
"@expo/webpack-config": "^19.0.0",
|
129
|
+
"babel-plugin-inline-dotenv": "^1.7.0",
|
130
|
+
"babel-plugin-module-resolver": "^5.0.0",
|
131
|
+
"uninstall": "^0.0.0"
|
132
|
+
}
|
133
|
+
}
|
package/package.json
CHANGED
@@ -243,7 +243,7 @@ const ButtonComponent = React.forwardRef((prs,ref) => {
|
|
243
243
|
// @ts-expect-error We keep old a11y props for backwards compat with old RN versions
|
244
244
|
accessibilityTraits={disabled ? ['button', 'disabled'] : 'button'}
|
245
245
|
accessibilityComponentType="button"
|
246
|
-
role={disabled?role ||
|
246
|
+
//role={disabled?role ||undefined}
|
247
247
|
accessibilityState={{ disabled }}
|
248
248
|
accessible={accessible}
|
249
249
|
disabled={disabled}
|
@@ -13,7 +13,7 @@ import { useList,useGetNumColumns } from "./hooks";
|
|
13
13
|
|
14
14
|
const CommonListComponent = React.forwardRef((props,ref)=>{
|
15
15
|
const context = useList(props);
|
16
|
-
let {testID,defaultItemHeight,itemHeight,onRender,componentProps,columnWrapperStyle,onViewableItemsChanged,withFlatListItem,Component,withBackToTop,backToTopRef:customBackToTopRef,withBackToTopButton,onScroll,onScrollEnd,onMount,onUnmount,renderScrollViewWrapper,prepareItems,getItemKey,getKey,keyExtractor,items,filter,renderItem,numColumns,containerProps,bindResizeEvents,...rest} = props;
|
16
|
+
let {testID,isBigList,defaultItemHeight,itemHeight,onRender,componentProps,columnWrapperStyle,onViewableItemsChanged,withFlatListItem,Component,withBackToTop,backToTopRef:customBackToTopRef,withBackToTopButton,onScroll,onScrollEnd,onMount,onUnmount,renderScrollViewWrapper,prepareItems,getItemKey,getKey,keyExtractor,items,filter,renderItem,numColumns,containerProps,bindResizeEvents,...rest} = props;
|
17
17
|
withBackToTopButton = withBackToTop === true || withBackToTopButton == true || isMobileMedia()? true : false;
|
18
18
|
rest = defaultObj(rest);
|
19
19
|
containerProps = defaultObj(containerProps);
|
@@ -144,8 +144,10 @@ const CommonListComponent = React.forwardRef((props,ref)=>{
|
|
144
144
|
const restP = numColumns > 1 && isFlatList ? {
|
145
145
|
columnWrapperStyle : [styles.columnWrapperStyle,props.columnWrapperStyle]
|
146
146
|
} : {};
|
147
|
+
const itemsLength = context.items?.length;
|
148
|
+
const isNotVirtual = false && isBigList && itemsLength <=10;
|
147
149
|
return <View testID={testID+"_CommonListContainer"} {...containerProps} style={[styles.container,containerProps.style]}>
|
148
|
-
<Component
|
150
|
+
{!isNotVirtual ? <Component
|
149
151
|
onEndReachedThreshold={0}
|
150
152
|
scrollEventThrottle={16}
|
151
153
|
{...rest}
|
@@ -160,8 +162,13 @@ const CommonListComponent = React.forwardRef((props,ref)=>{
|
|
160
162
|
itemHeight = {itemHeight === false ? undefined : context.itemHeight}
|
161
163
|
onViewableItemsChanged={onViewableItemsChanged}
|
162
164
|
{...defaultObj(componentProps)}
|
163
|
-
/>
|
164
|
-
|
165
|
+
/> : context.items.map((item,index)=>{
|
166
|
+
const key = context.keyExtractor(item,index);
|
167
|
+
return <View key={key} testID={`${testID}_RN_RealBigList_${index}_${key}`} style={[styles.realListItem]}>
|
168
|
+
{context.renderItem({item,index})}
|
169
|
+
</View>
|
170
|
+
})}
|
171
|
+
{!isNotVirtual && !hasCustomBackToTop && customBackToTopRef !== false ? <BackToTop ref={backToTopRef} onPress={context.onBackActionPress} /> : null}
|
165
172
|
</View>
|
166
173
|
})
|
167
174
|
|
@@ -211,7 +218,13 @@ const styles = StyleSheet.create({
|
|
211
218
|
},
|
212
219
|
columnWrapperStyle : {
|
213
220
|
flex : 1,
|
214
|
-
}
|
221
|
+
},
|
222
|
+
realListItem : {
|
223
|
+
width : "100%",
|
224
|
+
paddingVertical : 0,
|
225
|
+
paddingHorizontal : 0,
|
226
|
+
minHeight : 40,
|
227
|
+
},
|
215
228
|
});
|
216
229
|
export default CommonListComponent;
|
217
230
|
|
@@ -1 +1 @@
|
|
1
|
-
module.exports = {"@fto-consult/expo-ui":{"name":"@fto-consult/expo-ui","version":"6.
|
1
|
+
module.exports = {"@fto-consult/expo-ui":{"name":"@fto-consult/expo-ui","version":"6.59.0","repository":{"type":"git","url":"git+https://github.com/borispipo/expo-ui.git"},"homepage":"https://github.com/borispipo/expo-ui#readme"},"@emotion/native":{"version":"11.11.0","url":"https://emotion.sh","license":"MIT"},"@emotion/react":{"version":"11.11.1","url":"https://github.com/emotion-js/emotion/tree/main/packages/react","license":"MIT"},"@expo/html-elements":{"version":"0.5.1","url":"https://github.com/expo/expo/tree/main/packages/html-elements","license":"MIT"},"@expo/metro-config":{"version":"0.10.7","url":"https://github.com/expo/expo.git","license":"MIT"},"@expo/vector-icons":{"version":"13.0.0","url":"https://expo.github.io/vector-icons","license":"MIT"},"@expo/webpack-config":{"version":"19.0.0","url":"https://github.com/expo/expo-cli.git","license":"MIT"},"@faker-js/faker":{"version":"8.0.2","url":"https://github.com/faker-js/faker.git","license":"MIT"},"@fto-consult/common":{"version":"3.53.0","url":"https://github.com/borispipo/common#readme","license":"ISC"},"@pchmn/expo-material3-theme":{"version":"1.3.1","url":"https://github.com/pchmn/expo-material3-theme#readme","license":"MIT"},"@react-native-async-storage/async-storage":{"version":"1.18.2","url":"https://github.com/react-native-async-storage/async-storage#readme","license":"MIT"},"@react-native-community/datetimepicker":{"version":"7.2.0","url":"https://github.com/react-native-community/datetimepicker#readme","license":"MIT"},"@react-native-community/netinfo":{"version":"9.3.10","url":"https://github.com/react-native-netinfo/react-native-netinfo#readme","license":"MIT"},"@react-native/assets-registry":{"version":"0.72.0","url":"git@github.com:facebook/react-native.git","license":"MIT"},"@react-navigation/native":{"version":"6.1.8","url":"https://reactnavigation.org","license":"MIT"},"@react-navigation/native-stack":{"version":"6.9.14","url":"https://github.com/software-mansion/react-native-screens#readme","license":"MIT"},"@react-navigation/stack":{"version":"6.3.18","url":"https://reactnavigation.org/docs/stack-navigator/","license":"MIT"},"@shopify/flash-list":{"version":"1.4.3","url":"https://shopify.github.io/flash-list/","license":"MIT"},"apexcharts":{"version":"3.44.0","url":"https://apexcharts.com","license":"MIT"},"babel-plugin-inline-dotenv":{"version":"1.7.0","url":"https://github.com/brysgo/babel-plugin-inline-dotenv#readme","license":"ISC"},"babel-plugin-module-resolver":{"version":"5.0.0","url":"https://github.com/tleunen/babel-plugin-module-resolver.git","license":"MIT"},"expo":{"version":"49.0.15","url":"https://github.com/expo/expo/tree/main/packages/expo","license":"MIT"},"expo-camera":{"version":"13.4.4","url":"https://docs.expo.dev/versions/latest/sdk/camera/","license":"MIT"},"expo-clipboard":{"version":"4.3.1","url":"https://docs.expo.dev/versions/latest/sdk/clipboard","license":"MIT"},"expo-font":{"version":"11.4.0","url":"https://docs.expo.dev/versions/latest/sdk/font/","license":"MIT"},"expo-image-picker":{"version":"14.3.2","url":"https://docs.expo.dev/versions/latest/sdk/imagepicker/","license":"MIT"},"expo-linking":{"version":"5.0.2","url":"https://docs.expo.dev/versions/latest/sdk/linking","license":"MIT"},"expo-sqlite":{"version":"11.3.3","url":"https://docs.expo.dev/versions/latest/sdk/sqlite/","license":"MIT"},"expo-status-bar":{"version":"1.6.0","url":"https://docs.expo.dev/versions/latest/sdk/status-bar/","license":"MIT"},"expo-system-ui":{"version":"2.4.0","url":"https://docs.expo.dev/versions/latest/sdk/system-ui","license":"MIT"},"expo-web-browser":{"version":"12.3.2","url":"https://docs.expo.dev/versions/latest/sdk/webbrowser/","license":"MIT"},"file-saver":{"version":"2.0.5","url":"https://github.com/eligrey/FileSaver.js#readme","license":"MIT"},"fs-extra":{"version":"11.1.1","url":"https://github.com/jprichardson/node-fs-extra","license":"MIT"},"google-libphonenumber":{"version":"3.2.33","url":"https://ruimarinho.github.io/google-libphonenumber/","license":"(MIT AND Apache-2.0)"},"htmlparser2-without-node-native":{"version":"3.9.2","url":"git://github.com/fb55/htmlparser2.git","license":"MIT"},"is-plain-obj":{"version":"4.1.0","license":"MIT"},"js-base64":{"version":"3.7.5","license":"BSD-3-Clause"},"pdfmake":{"version":"0.2.7","url":"http://pdfmake.org","license":"MIT"},"process":{"version":"0.11.10","url":"git://github.com/shtylman/node-process.git","license":"MIT"},"prop-types":{"version":"15.8.1","url":"https://facebook.github.io/react/","license":"MIT"},"react":{"version":"18.2.0","url":"https://reactjs.org/","license":"MIT"},"react-content-loader":{"version":"6.2.1","url":"https://github.com/danilowoz/react-content-loader","license":"MIT"},"react-dom":{"version":"18.2.0","url":"https://reactjs.org/","license":"MIT"},"react-native":{"version":"0.72.6","license":"MIT"},"react-native-big-list":{"version":"1.6.1","url":"https://marcocesarato.github.io/react-native-big-list-docs/","license":"GPL-3.0-or-later"},"react-native-blob-util":{"version":"0.18.6","url":"https://github.com/RonRadtke/react-native-blob-util","license":"MIT"},"react-native-gesture-handler":{"version":"2.12.1","url":"https://github.com/software-mansion/react-native-gesture-handler#readme","license":"MIT"},"react-native-iphone-x-helper":{"version":"1.3.1","url":"https://github.com/ptelad/react-native-iphone-x-helper#readme","license":"MIT"},"react-native-mime-types":{"version":"2.4.0","license":"MIT"},"react-native-paper":{"version":"5.11.0","url":"https://callstack.github.io/react-native-paper","license":"MIT"},"react-native-paper-dates":{"version":"0.20.1","url":"https://github.com/web-ridge/react-native-paper-dates#readme","license":"MIT"},"react-native-reanimated":{"version":"3.3.0","url":"https://github.com/software-mansion/react-native-reanimated#readme","license":"MIT"},"react-native-safe-area-context":{"version":"4.6.3","url":"https://github.com/th3rdwave/react-native-safe-area-context#readme","license":"MIT"},"react-native-screens":{"version":"3.22.1","url":"https://github.com/software-mansion/react-native-screens#readme","license":"MIT"},"react-native-svg":{"version":"13.9.0","url":"https://github.com/react-native-community/react-native-svg","license":"MIT"},"react-native-web":{"version":"0.19.9","url":"git://github.com/necolas/react-native-web.git","license":"MIT"},"react-native-webview":{"version":"13.2.2","url":"https://github.com/react-native-webview/react-native-webview#readme","license":"MIT"},"react-virtuoso":{"version":"4.6.2","url":"https://virtuoso.dev/","license":"MIT"},"sharp-cli":{"version":"2.1.0","url":"https://github.com/vseventer/sharp-cli","license":"MIT"},"tippy.js":{"version":"6.3.7","url":"https://atomiks.github.io/tippyjs/","license":"MIT"},"uninstall":{"version":"0.0.0","license":"MIT"},"websql":{"version":"2.0.3","url":"git://github.com/nolanlawson/node-websql.git","license":"Apache-2.0"},"xlsx":{"version":"0.18.5","url":"https://sheetjs.com/","license":"Apache-2.0"}};
|