@fto-consult/expo-ui 6.18.34 → 6.18.36
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.
|
Binary file
|
|
Binary file
|
|
@@ -3,8 +3,7 @@ module.exports = function(api) {
|
|
|
3
3
|
//your custom module resolver alias, @see : https://www.npmjs.com/package/babel-plugin-module-resolver
|
|
4
4
|
}
|
|
5
5
|
return require("@fto-consult/expo-ui/babel.config")(api,{
|
|
6
|
-
base :dir,
|
|
7
6
|
alias,
|
|
8
7
|
withPouchDB:false,//toggle support of pouchdb database,
|
|
9
|
-
})
|
|
8
|
+
});
|
|
10
9
|
};
|
package/bin/create-app.js
CHANGED
|
@@ -47,7 +47,7 @@ const createEntryFile = (projectRoot)=>{
|
|
|
47
47
|
|
|
48
48
|
const createAPPJSONFile = (projectRoot,{name,version})=>{
|
|
49
49
|
version = version ||"1.0.0";
|
|
50
|
-
copy(path.join(createAppDir,"assets"),projectRoot);
|
|
50
|
+
copy(path.join(createAppDir,"assets"),path.resolve(projectRoot,"assets"));
|
|
51
51
|
const appJSONPath = path.join(projectRoot,"app.json");
|
|
52
52
|
if(!fs.existsSync(appJSONPath)){
|
|
53
53
|
writeFile(appJSONPath,`
|
|
@@ -57,12 +57,28 @@ const createAPPJSONFile = (projectRoot,{name,version})=>{
|
|
|
57
57
|
"slug": "${name.toLowerCase().replace(/\s\s+/g, '-')}",
|
|
58
58
|
"version":"${version}",
|
|
59
59
|
"orientation": "portrait",
|
|
60
|
+
"icon": "./assets/icon.png",
|
|
60
61
|
"splash": {
|
|
61
62
|
"image": "./assets/splash.png",
|
|
62
63
|
"resizeMode": "contain",
|
|
63
64
|
"backgroundColor": "#ffffff"
|
|
64
65
|
},
|
|
65
66
|
"userInterfaceStyle": "automatic",
|
|
67
|
+
"assetBundlePatterns": [
|
|
68
|
+
"**/*"
|
|
69
|
+
],
|
|
70
|
+
"ios": {
|
|
71
|
+
"supportsTablet": true
|
|
72
|
+
},
|
|
73
|
+
"android": {
|
|
74
|
+
"adaptiveIcon": {
|
|
75
|
+
"foregroundImage": "./assets/adaptive-icon.png",
|
|
76
|
+
"backgroundColor": "#ffffff"
|
|
77
|
+
}
|
|
78
|
+
},
|
|
79
|
+
"web": {
|
|
80
|
+
"favicon": "./assets/favicon.png"
|
|
81
|
+
}
|
|
66
82
|
}
|
|
67
83
|
}
|
|
68
84
|
`)
|