@fto-consult/expo-ui 1.1.12 → 1.1.13

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  module.exports = function(api,opts) {
2
2
  const script = require("./expo-ui-current-script")(__filename);
3
3
  if(script){
4
- console.log("has found local babel.config.js on expo-ui dev path ",script);
4
+ console.log("found local babel.config.js on expo-ui dev path at ",script);
5
5
  return require(script)(api,opts);
6
6
  }
7
7
  opts = typeof opts =='object' && opts ? opts : {};
@@ -4,7 +4,7 @@ const isCaseSensitive = require("./is-os-case-sensitive");
4
4
  module.exports = (opts)=>{
5
5
  const script = require("./expo-ui-current-script")(__filename);
6
6
  if(script){
7
- console.log("has found local metro-config dev file path",script);
7
+ console.log("found local metro-config dev file path at ",script);
8
8
  return require(script)(opts);
9
9
  }
10
10
  opts = opts && typeof opts =='object'? opts : {};
package/index.js CHANGED
@@ -1,5 +1,8 @@
1
1
  import { registerRootComponent } from 'expo';
2
- import appConfig from "$capp/config";
2
+ const expoPath = (require("./expo-ui-production-path")+"/").replace("//","/");
3
+ const appConfigPath = expoPath+"node_modules/@fto-consult/common/src/app/config";
4
+ console.log(expoPath," is expo path found heinnnnn ",appConfigPath," and expo app is ",expoPath+'src/App');
5
+ const appConfig = require (appConfigPath);
3
6
 
4
7
  const isObj = x=>typeof x =='object' && x && !Array.isArray(x);
5
8
  const defaultObj = x=> isObj(x)? x : {};
@@ -14,5 +17,5 @@ export default function registerExpoUIApp (options){
14
17
  options = defaultObj(options);
15
18
  const config = defaultObj(options.config);
16
19
  appConfig.current = config;
17
- registerRootComponent(require('./src/App').default(options));
20
+ registerRootComponent(require(expoPath+'src/App').default(options));
18
21
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fto-consult/expo-ui",
3
- "version": "1.1.12",
3
+ "version": "1.1.13",
4
4
  "description": "Bibliothèque de composants UI Expo,react-native",
5
5
  "main": "index.js",
6
6
  "scripts": {
package/webpack.config.js CHANGED
@@ -4,7 +4,7 @@ const createExpoWebpackConfigAsync = require('@expo/webpack-config')
4
4
  module.exports = async function(env, argv,opts) {
5
5
  const script = require("./expo-ui-current-script")(__filename);
6
6
  if(script){
7
- console.log("has found local webpack.config.js on expo-ui dev path ",script);
7
+ console.log("found local webpack.config.js on expo-ui dev path at ",script);
8
8
  return require(script)(env, argv,opts);
9
9
  }
10
10
  const path = require("path");