@fto-consult/expo-ui 8.4.6 → 8.4.8
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/bin/create-app.js
CHANGED
@@ -45,6 +45,8 @@ module.exports = function(appName,{projectRoot:root}){
|
|
45
45
|
[euModule] : packageObj.version,
|
46
46
|
"expo" : packageObj.devDependencies.expo,
|
47
47
|
[rnModule] : packageObj.dependencies[rnModule],
|
48
|
+
"react-native-reanimated" : "latest",
|
49
|
+
"react-native-gesture-handler" : "latest",
|
48
50
|
},
|
49
51
|
devDependencies : devDeps
|
50
52
|
}
|
@@ -78,7 +80,7 @@ module.exports = function(appName,{projectRoot:root}){
|
|
78
80
|
createEntryFile(projectRoot);
|
79
81
|
copy(path.resolve(getAppDir(),"src"),path.resolve(projectRoot,"src"),{recursive:true,overwrite:false});
|
80
82
|
console.log("installing dependencies ...");
|
81
|
-
return exec(`
|
83
|
+
return exec(`npx expo install --fix`,{projectRoot}).finally(()=>{
|
82
84
|
setTimeout(()=>{
|
83
85
|
console.log("application ready");
|
84
86
|
process.exit();
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@fto-consult/expo-ui",
|
3
|
-
"version": "8.4.
|
3
|
+
"version": "8.4.8",
|
4
4
|
"description": "Bibliothèque de composants UI Expo,react-native",
|
5
5
|
"scripts": {
|
6
6
|
"clear-npx-cache": "npx clear-npx-cache",
|
@@ -108,13 +108,11 @@
|
|
108
108
|
"react-native": "0.73.2",
|
109
109
|
"react-native-big-list": "^1.6.1",
|
110
110
|
"react-native-blob-util": "^0.18.6",
|
111
|
-
"react-native-gesture-handler": "~2.14.0",
|
112
111
|
"react-native-get-random-values": "~1.8.0",
|
113
112
|
"react-native-iphone-x-helper": "^1.3.1",
|
114
113
|
"react-native-mime-types": "^2.4.0",
|
115
114
|
"react-native-paper": "^5.12.1",
|
116
115
|
"react-native-paper-dates": "^0.21.7",
|
117
|
-
"react-native-reanimated": "~3.6.0",
|
118
116
|
"react-native-safe-area-context": "4.8.2",
|
119
117
|
"react-native-screens": "~3.29.0",
|
120
118
|
"react-native-svg": "14.1.0",
|
package/src/AppEntry/index.js
CHANGED
@@ -1,4 +1,5 @@
|
|
1
1
|
import React from "$react"
|
2
|
+
import "react-native-gesture-handler";
|
2
3
|
import { AppState} from "react-native";
|
3
4
|
import BackHandler from "$ecomponents/BackHandler";
|
4
5
|
import * as Linking from 'expo-linking';
|
@@ -40,8 +41,6 @@ import { StyleSheet } from "react-native";
|
|
40
41
|
import Logo from "$ecomponents/Logo";
|
41
42
|
import AppEntryRootView from "./RootView";
|
42
43
|
import { SafeAreaProvider } from 'react-native-safe-area-context';
|
43
|
-
import {isNeutralino} from "$cplatform";
|
44
|
-
import "react-native-gesture-handler";
|
45
44
|
|
46
45
|
let MAX_BACK_COUNT = 1;
|
47
46
|
let countBack = 0;
|
@@ -21,7 +21,7 @@ export const isAssets = (asset,staticAssets)=>{
|
|
21
21
|
}
|
22
22
|
export const isValidImageSrc = (src)=>{
|
23
23
|
if(!isNonNullString(src)) return false;
|
24
|
-
return isDataURL(src)? true : isValidURL(src) ? true : src.contains("/static/media/")? true : false;
|
24
|
+
return isDataURL(src) && !src.includes(",undefined") ? true : isValidURL(src) ? true : src.contains("/static/media/")? true : false;
|
25
25
|
}
|
26
26
|
export const resolveAssetSource = (source)=>{
|
27
27
|
if(!source && !isDecimal(source)) return undefined;
|