@fto-consult/expo-ui 5.11.22 → 5.11.24
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.alias.js +4 -1
- package/babel.config.js +64 -34
- package/package.json +123 -123
- package/src/components/BackHandler/index.android.js +3 -0
- package/src/components/BackHandler/index.js +23 -0
- package/src/components/Form/FormData/DialogProvider.js +2 -0
- /package/src/components/Form/Fields/{IDField.js → IdField.js} +0 -0
package/babel.config.alias.js
CHANGED
|
@@ -111,10 +111,13 @@ module.exports = (opts)=>{
|
|
|
111
111
|
}
|
|
112
112
|
///on génère les librairies open sources utilisées par l'application
|
|
113
113
|
const root = path.resolve(r.$src,"..");
|
|
114
|
+
const nModulePath = fs.existsSync(path.resolve(root,"node_modules")) && path.resolve(root,"node_modules") || fs.existsSync(path.resolve(r.$src,"node_modules")) && path.resolve(r.$src,"node_modules") || path.resolve(base,"node_modules");
|
|
115
|
+
const nodeModulesPath = fs.existsSync(nModulePath) ? nModulePath : path.resolve(process.cwd(),"node_modules");
|
|
114
116
|
const outputPath = path.resolve(HelpScreen,"openLibraries.js");
|
|
117
|
+
r.$nodeModulesPath = r.$enodeModulesPath= nodeModulesPath;
|
|
115
118
|
require("./find-licenses")({
|
|
116
119
|
paths : [root,r["$expo-ui-root-path"]],
|
|
117
|
-
nodeModulesPath :
|
|
120
|
+
nodeModulesPath : nodeModulesPath,
|
|
118
121
|
outputPath
|
|
119
122
|
});
|
|
120
123
|
const $assets = r.$assets;
|
package/babel.config.js
CHANGED
|
@@ -1,35 +1,65 @@
|
|
|
1
1
|
module.exports = function(api,opts) {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
2
|
+
opts = typeof opts =='object' && opts ? opts : {};
|
|
3
|
+
api = api && typeof api =='object'? api : {};
|
|
4
|
+
///les chemin vers la variable d'environnement, le chemin du fichier .env,@see : https://github.com/brysgo/babel-plugin-inline-dotenv
|
|
5
|
+
//console.log(environmentPath," is envvv ",opts);
|
|
6
|
+
const path = require("path");
|
|
7
|
+
const fs = require("fs");
|
|
8
|
+
const dir = path.resolve(__dirname);
|
|
9
|
+
typeof api.cache =='function' && api.cache(true);
|
|
10
|
+
const inlineDovOptions = { unsafe: true};
|
|
11
|
+
const options = {base:dir,...opts,platform:"expo"};
|
|
12
|
+
const environmentPath = require("./copy-env-file")();
|
|
13
|
+
if(fs.existsSync(environmentPath)){
|
|
14
|
+
inlineDovOptions.path ='./.env';
|
|
15
|
+
}
|
|
16
|
+
/*** par défaut, les variables d'environnements sont stockés dans le fichier .env situé à la racine du projet, référencée par la prop base */
|
|
17
|
+
const alias = require("./babel.config.alias")(options);
|
|
18
|
+
const $ecomponents = alias.$ecomponents|| null;
|
|
19
|
+
const eAppex = $ecomponents && path.resolve($ecomponents,"Chart","appexChart");
|
|
20
|
+
if(eAppex && fs.existsSync(eAppex)){
|
|
21
|
+
const appexPathHtml = path.resolve(eAppex,"index.html");
|
|
22
|
+
const $eelectron = alias.$eelectron || null;
|
|
23
|
+
const expoRoot = alias["$expo-ui-root-path"] || null;
|
|
24
|
+
const expoRootModulesP = expoRoot && fs.existsSync(path.resolve(expoRoot,"node_modules")) && path.resolve(expoRoot,"node_modules") || null;
|
|
25
|
+
const aDistPath = path.join("apexcharts","dist","apexcharts.min.js");
|
|
26
|
+
const nodeModulesPath = expoRootModulesP && fs.existsSync(path.resolve(expoRootModulesP,aDistPath)) ? expoRootModulesP : alias.$enodeModulesPath;
|
|
27
|
+
if(nodeModulesPath && fs.existsSync(nodeModulesPath) && $eelectron && fs.existsSync($eelectron)){
|
|
28
|
+
const writeFilePath = path.resolve($eelectron,"utils","writeFile.js");
|
|
29
|
+
const appexDistPath = path.resolve(nodeModulesPath,"apexcharts","dist","apexcharts.min.js");
|
|
30
|
+
if(fs.existsSync(writeFilePath) && fs.existsSync(appexDistPath)){
|
|
31
|
+
const jsContent = fs.readFileSync(appexDistPath, 'utf8')
|
|
32
|
+
const writeFile = require(`${writeFilePath}`);
|
|
33
|
+
//overite appex chart html file
|
|
34
|
+
writeFile(appexPathHtml,`
|
|
35
|
+
<html>
|
|
36
|
+
<head>
|
|
37
|
+
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
|
38
|
+
<script>${jsContent}</script>
|
|
39
|
+
</head>
|
|
40
|
+
<body>
|
|
41
|
+
</body>
|
|
42
|
+
</html>
|
|
43
|
+
`);
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
return {
|
|
49
|
+
presets: [
|
|
50
|
+
['babel-preset-expo'],
|
|
51
|
+
["@babel/preset-react", {"runtime": "automatic"}],
|
|
52
|
+
],
|
|
53
|
+
plugins : [
|
|
54
|
+
["inline-dotenv",inlineDovOptions],
|
|
55
|
+
["module-resolver", {"alias": alias}],
|
|
56
|
+
['@babel/plugin-proposal-export-namespace-from'],
|
|
57
|
+
['transform-inline-environment-variables',{
|
|
58
|
+
"include": [
|
|
59
|
+
"NODE_ENV"
|
|
60
|
+
]
|
|
61
|
+
}],
|
|
62
|
+
['react-native-reanimated/plugin'],
|
|
63
|
+
],
|
|
64
|
+
};
|
|
65
|
+
};
|
package/package.json
CHANGED
|
@@ -1,123 +1,123 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@fto-consult/expo-ui",
|
|
3
|
-
"version": "5.11.
|
|
4
|
-
"description": "Bibliothèque de composants UI Expo,react-native",
|
|
5
|
-
"main": "index.js",
|
|
6
|
-
"scripts": {
|
|
7
|
-
"publish1": "npm publish --access=public",
|
|
8
|
-
"unpublish": "npm -f unpublish @fto-consult/expo-ui",
|
|
9
|
-
"build-web": "",
|
|
10
|
-
"dev": "npx expo start -c --no-minify",
|
|
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
|
-
"delete-node-modules": "rimraf ./**/node_modules",
|
|
43
|
-
"modifier-url-remote-git": "git remote set-url origin 'https://borispipo@github.com/borispipo/smart-eneo.git'"
|
|
44
|
-
},
|
|
45
|
-
"bin": "./bin/index.js",
|
|
46
|
-
"repository": {
|
|
47
|
-
"type": "git",
|
|
48
|
-
"url": "git+https://github.com/borispipo/expo-ui.git"
|
|
49
|
-
},
|
|
50
|
-
"keywords": [
|
|
51
|
-
"Expo",
|
|
52
|
-
"React-Native"
|
|
53
|
-
],
|
|
54
|
-
"author": "Boris Fouomene",
|
|
55
|
-
"license": "ISC",
|
|
56
|
-
"bugs": {
|
|
57
|
-
"url": "https://github.com/borispipo/expo-ui/issues"
|
|
58
|
-
},
|
|
59
|
-
"homepage": "https://github.com/borispipo/expo-ui#readme",
|
|
60
|
-
"dependencies": {
|
|
61
|
-
"@emotion/native": "^11.11.0",
|
|
62
|
-
"@expo/html-elements": "^0.2.0",
|
|
63
|
-
"@expo/vector-icons": "^13.0.0",
|
|
64
|
-
"@fto-consult/common": "^3.18.31",
|
|
65
|
-
"@gorhom/portal": "^1.0.14",
|
|
66
|
-
"@pchmn/expo-material3-theme": "^1.0.1",
|
|
67
|
-
"@react-native-async-storage/async-storage": "^1.17.11",
|
|
68
|
-
"@react-native-community/datetimepicker": "^6.7.3",
|
|
69
|
-
"@react-native-community/netinfo": "^9.3.7",
|
|
70
|
-
"@react-native/assets-registry": "^0.72.0",
|
|
71
|
-
"@react-navigation/native": "^6.1.6",
|
|
72
|
-
"@react-navigation/native-stack": "^6.9.12",
|
|
73
|
-
"@shopify/flash-list": "^1.4.0",
|
|
74
|
-
"apexcharts": "^3.
|
|
75
|
-
"expo": "^48.0.19",
|
|
76
|
-
"expo-camera": "^13.2.1",
|
|
77
|
-
"expo-clipboard": "^4.1.2",
|
|
78
|
-
"expo-font": "^11.1.1",
|
|
79
|
-
"expo-image-picker": "^14.1.1",
|
|
80
|
-
"expo-linking": "^4.0.1",
|
|
81
|
-
"expo-sqlite": "^11.1.1",
|
|
82
|
-
"expo-status-bar": "^1.4.4",
|
|
83
|
-
"expo-system-ui": "^2.2.1",
|
|
84
|
-
"expo-web-browser": "^12.1.1",
|
|
85
|
-
"file-saver": "^2.0.5",
|
|
86
|
-
"fs-extra": "^11.1.1",
|
|
87
|
-
"google-libphonenumber": "^3.2.32",
|
|
88
|
-
"htmlparser2-without-node-native": "^3.9.2",
|
|
89
|
-
"process": "^0.11.10",
|
|
90
|
-
"prop-types": "^15.8.1",
|
|
91
|
-
"react": "^18.2.0",
|
|
92
|
-
"react-content-loader": "^6.2.1",
|
|
93
|
-
"react-dom": "^18.2.0",
|
|
94
|
-
"react-native": "^0.71.3",
|
|
95
|
-
"react-native-big-list": "^1.6.1",
|
|
96
|
-
"react-native-blob-util": "^0.17.0",
|
|
97
|
-
"react-native-gesture-handler": "~2.9.0",
|
|
98
|
-
"react-native-iphone-x-helper": "^1.3.1",
|
|
99
|
-
"react-native-mime-types": "^2.3.0",
|
|
100
|
-
"react-native-paper": "^5.9.
|
|
101
|
-
"react-native-paper-dates": "^0.18.12",
|
|
102
|
-
"react-native-reanimated": "~2.14.4",
|
|
103
|
-
"react-native-safe-area-context": "^4.5.3",
|
|
104
|
-
"react-native-screens": "^3.20.0",
|
|
105
|
-
"react-native-svg": "13.4.0",
|
|
106
|
-
"react-native-web": "~0.18.7",
|
|
107
|
-
"react-native-webview": "^11.26.0",
|
|
108
|
-
"react-virtuoso": "^4.3.11",
|
|
109
|
-
"sharp-cli": "^2.1.0",
|
|
110
|
-
"tippy.js": "^6.3.7",
|
|
111
|
-
"websql": "^2.0.3",
|
|
112
|
-
"xlsx": "^0.18.5"
|
|
113
|
-
},
|
|
114
|
-
"devDependencies": {
|
|
115
|
-
"@babel/plugin-proposal-export-namespace-from": "^7.18.9",
|
|
116
|
-
"@babel/preset-react": "^7.18.6",
|
|
117
|
-
"@expo/metro-config": "^0.7.1",
|
|
118
|
-
"@expo/webpack-config": "^18.0.1",
|
|
119
|
-
"babel-plugin-inline-dotenv": "^1.7.0",
|
|
120
|
-
"babel-plugin-module-resolver": "^4.1.0",
|
|
121
|
-
"babel-plugin-transform-inline-environment-variables": "^0.4.4"
|
|
122
|
-
}
|
|
123
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "@fto-consult/expo-ui",
|
|
3
|
+
"version": "5.11.24",
|
|
4
|
+
"description": "Bibliothèque de composants UI Expo,react-native",
|
|
5
|
+
"main": "index.js",
|
|
6
|
+
"scripts": {
|
|
7
|
+
"publish1": "npm publish --access=public",
|
|
8
|
+
"unpublish": "npm -f unpublish @fto-consult/expo-ui",
|
|
9
|
+
"build-web": "",
|
|
10
|
+
"dev": "npx expo start -c --no-minify",
|
|
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
|
+
"delete-node-modules": "rimraf ./**/node_modules",
|
|
43
|
+
"modifier-url-remote-git": "git remote set-url origin 'https://borispipo@github.com/borispipo/smart-eneo.git'"
|
|
44
|
+
},
|
|
45
|
+
"bin": "./bin/index.js",
|
|
46
|
+
"repository": {
|
|
47
|
+
"type": "git",
|
|
48
|
+
"url": "git+https://github.com/borispipo/expo-ui.git"
|
|
49
|
+
},
|
|
50
|
+
"keywords": [
|
|
51
|
+
"Expo",
|
|
52
|
+
"React-Native"
|
|
53
|
+
],
|
|
54
|
+
"author": "Boris Fouomene",
|
|
55
|
+
"license": "ISC",
|
|
56
|
+
"bugs": {
|
|
57
|
+
"url": "https://github.com/borispipo/expo-ui/issues"
|
|
58
|
+
},
|
|
59
|
+
"homepage": "https://github.com/borispipo/expo-ui#readme",
|
|
60
|
+
"dependencies": {
|
|
61
|
+
"@emotion/native": "^11.11.0",
|
|
62
|
+
"@expo/html-elements": "^0.2.0",
|
|
63
|
+
"@expo/vector-icons": "^13.0.0",
|
|
64
|
+
"@fto-consult/common": "^3.18.31",
|
|
65
|
+
"@gorhom/portal": "^1.0.14",
|
|
66
|
+
"@pchmn/expo-material3-theme": "^1.0.1",
|
|
67
|
+
"@react-native-async-storage/async-storage": "^1.17.11",
|
|
68
|
+
"@react-native-community/datetimepicker": "^6.7.3",
|
|
69
|
+
"@react-native-community/netinfo": "^9.3.7",
|
|
70
|
+
"@react-native/assets-registry": "^0.72.0",
|
|
71
|
+
"@react-navigation/native": "^6.1.6",
|
|
72
|
+
"@react-navigation/native-stack": "^6.9.12",
|
|
73
|
+
"@shopify/flash-list": "^1.4.0",
|
|
74
|
+
"apexcharts": "^3.41.0",
|
|
75
|
+
"expo": "^48.0.19",
|
|
76
|
+
"expo-camera": "^13.2.1",
|
|
77
|
+
"expo-clipboard": "^4.1.2",
|
|
78
|
+
"expo-font": "^11.1.1",
|
|
79
|
+
"expo-image-picker": "^14.1.1",
|
|
80
|
+
"expo-linking": "^4.0.1",
|
|
81
|
+
"expo-sqlite": "^11.1.1",
|
|
82
|
+
"expo-status-bar": "^1.4.4",
|
|
83
|
+
"expo-system-ui": "^2.2.1",
|
|
84
|
+
"expo-web-browser": "^12.1.1",
|
|
85
|
+
"file-saver": "^2.0.5",
|
|
86
|
+
"fs-extra": "^11.1.1",
|
|
87
|
+
"google-libphonenumber": "^3.2.32",
|
|
88
|
+
"htmlparser2-without-node-native": "^3.9.2",
|
|
89
|
+
"process": "^0.11.10",
|
|
90
|
+
"prop-types": "^15.8.1",
|
|
91
|
+
"react": "^18.2.0",
|
|
92
|
+
"react-content-loader": "^6.2.1",
|
|
93
|
+
"react-dom": "^18.2.0",
|
|
94
|
+
"react-native": "^0.71.3",
|
|
95
|
+
"react-native-big-list": "^1.6.1",
|
|
96
|
+
"react-native-blob-util": "^0.17.0",
|
|
97
|
+
"react-native-gesture-handler": "~2.9.0",
|
|
98
|
+
"react-native-iphone-x-helper": "^1.3.1",
|
|
99
|
+
"react-native-mime-types": "^2.3.0",
|
|
100
|
+
"react-native-paper": "^5.9.1",
|
|
101
|
+
"react-native-paper-dates": "^0.18.12",
|
|
102
|
+
"react-native-reanimated": "~2.14.4",
|
|
103
|
+
"react-native-safe-area-context": "^4.5.3",
|
|
104
|
+
"react-native-screens": "^3.20.0",
|
|
105
|
+
"react-native-svg": "13.4.0",
|
|
106
|
+
"react-native-web": "~0.18.7",
|
|
107
|
+
"react-native-webview": "^11.26.0",
|
|
108
|
+
"react-virtuoso": "^4.3.11",
|
|
109
|
+
"sharp-cli": "^2.1.0",
|
|
110
|
+
"tippy.js": "^6.3.7",
|
|
111
|
+
"websql": "^2.0.3",
|
|
112
|
+
"xlsx": "^0.18.5"
|
|
113
|
+
},
|
|
114
|
+
"devDependencies": {
|
|
115
|
+
"@babel/plugin-proposal-export-namespace-from": "^7.18.9",
|
|
116
|
+
"@babel/preset-react": "^7.18.6",
|
|
117
|
+
"@expo/metro-config": "^0.7.1",
|
|
118
|
+
"@expo/webpack-config": "^18.0.1",
|
|
119
|
+
"babel-plugin-inline-dotenv": "^1.7.0",
|
|
120
|
+
"babel-plugin-module-resolver": "^4.1.0",
|
|
121
|
+
"babel-plugin-transform-inline-environment-variables": "^0.4.4"
|
|
122
|
+
}
|
|
123
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright (c) Nicolas Gallagher.
|
|
3
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
4
|
+
*
|
|
5
|
+
* This source code is licensed under the MIT license found in the
|
|
6
|
+
* LICENSE file in the root directory of this source tree.
|
|
7
|
+
*
|
|
8
|
+
* @flow
|
|
9
|
+
*/
|
|
10
|
+
|
|
11
|
+
function emptyFunction() {}
|
|
12
|
+
|
|
13
|
+
const BackHandler = {
|
|
14
|
+
exitApp: emptyFunction,
|
|
15
|
+
addEventListener() {
|
|
16
|
+
return {
|
|
17
|
+
remove: emptyFunction
|
|
18
|
+
};
|
|
19
|
+
},
|
|
20
|
+
removeEventListener: emptyFunction
|
|
21
|
+
};
|
|
22
|
+
|
|
23
|
+
export default BackHandler;
|
|
@@ -5,6 +5,7 @@ import {isMobileOrTabletMedia} from "$cplatform/dimensions";
|
|
|
5
5
|
import {MAX_WIDTH} from "$ecomponents/Dialog/utils";
|
|
6
6
|
import {extendObj,defaultObj,isObj,defaultBool,defaultStr} from "$cutils";
|
|
7
7
|
import grid from "$theme/grid";
|
|
8
|
+
import theme from "$theme";
|
|
8
9
|
import {isDesktopMedia} from "$cdimensions";
|
|
9
10
|
|
|
10
11
|
let dialogProviderRef = null;
|
|
@@ -72,6 +73,7 @@ const FormDataDialogProvider = React.forwardRef((props,innerRef)=>{
|
|
|
72
73
|
text : 'Annuler',
|
|
73
74
|
icon : 'close',
|
|
74
75
|
isCancelButton : true,
|
|
76
|
+
error : true,
|
|
75
77
|
...defaultObj(closeAction),
|
|
76
78
|
onPress : context.close,
|
|
77
79
|
isAction : false,
|
|
File without changes
|