@fto-consult/expo-ui 6.18.4 → 6.18.6

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/index.js CHANGED
@@ -17,7 +17,7 @@ const isWeb = Platform.OS === "web";
17
17
  * }
18
18
  */
19
19
  export default function registerApp ({onMount,onUnmount,onRender,render,swrConfig,init,...rest}){
20
- registerRootComponent(function(props){
20
+ return registerRootComponent(function(props){
21
21
  return <Provider {...props} {...rest} swrConfig={isObj(swrConfig) && swrConfig || {}} children={<App init={init} render={render} onMount={onMount} onUnmount={onUnmount} onRender={onRender}/>}/>
22
22
  });
23
23
  }
package/metro.config.js CHANGED
@@ -11,7 +11,11 @@ module.exports = function(opts){
11
11
  sourceExts= Array.isArray(sourceExts)?sourceExts : [];
12
12
  const projectRoot = process.cwd();
13
13
  const localDir = path.resolve(__dirname);
14
- const config = getDefaultConfig(projectRoot);
14
+ //@see : https://docs.expo.dev/versions/latest/config/metro/
15
+ const config = getDefaultConfig(projectRoot,{
16
+ // Enable CSS support.,
17
+ isCSSEnabled: true,
18
+ });
15
19
  config.watchFolders = Array.isArray(config.watchFolders) && config.watchFolders || [];
16
20
  if(projectRoot !== localDir){
17
21
  config.watchFolders.push(localDir);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fto-consult/expo-ui",
3
- "version": "6.18.4",
3
+ "version": "6.18.6",
4
4
  "description": "Bibliothèque de composants UI Expo,react-native",
5
5
  "main": "index.js",
6
6
  "scripts": {
package/src/App.js CHANGED
@@ -5,7 +5,7 @@ import {defaultObj} from "$cutils";
5
5
  import Index from './index';
6
6
  import notify from "$notify";
7
7
  import { SafeAreaProvider } from 'react-native-safe-area-context';
8
- import {GestureHandlerRootView} from "react-native-gesture-handler";
8
+ //import {GestureHandlerRootView} from "react-native-gesture-handler";
9
9
  import APP from "$app";
10
10
  import {isMobileNative} from "$cplatform";
11
11
  import {setDeviceIdRef} from "$capp";
@@ -139,11 +139,9 @@ export default function getIndex({onMount,onUnmount,render,onRender,init}){
139
139
  }
140
140
  }}
141
141
  >
142
- <GestureHandlerRootView style={{ flex: 1 }}>
143
142
  <SafeAreaProvider>
144
143
  <Index onMount={onMount} render={render} onUnmount={onUnmount} onRender={onRender} init={init}/>
145
144
  </SafeAreaProvider>
146
- </GestureHandlerRootView>
147
145
  </SWRConfig>
148
146
  );
149
147
  };
package/src/index.js CHANGED
@@ -188,7 +188,8 @@ function App({init:initApp,initialRouteName:appInitialRouteName,render,onMount})
188
188
  ...state,hasGetStarted:true,...defaultObj(args && args?.state),isInitialized:true,isLoading : false,
189
189
  });
190
190
  }).catch((e)=>{
191
- console.error(e," initializing app")
191
+ console.error(e," initializing app");
192
+ return;
192
193
  setState({...state,isInitialized:true,isLoading : false,hasGetStarted:false});
193
194
  })
194
195
  });