@fto-consult/expo-ui 6.18.4 → 6.18.5
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 +1 -1
- package/metro.config.js +5 -1
- package/package.json +1 -1
- package/src/index.js +2 -1
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
|
-
|
|
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
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
|
});
|