ipanel-rnapp-ajb-base 1.0.5 → 1.0.7
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/app/.local_dev/env.js +1 -1
- package/app/.local_dev/polyfill.js +18 -4
- package/bin/local-dev.js +1 -1
- package/package.json +1 -1
package/app/.local_dev/env.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export default '
|
|
1
|
+
export default 'production';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import {AppRegistry, NativeModules} from 'react-native';
|
|
2
2
|
|
|
3
3
|
// isMultiBundle:是否为分包加载方式(不是的话就是不分包方式,用于本地调试)
|
|
4
4
|
const isLocalDev = !NativeModules.RNToNativeEmitter?.isMultiBundle;
|
|
@@ -11,8 +11,22 @@ async function getRemoteComponentByName(componentName) {
|
|
|
11
11
|
try {
|
|
12
12
|
// 用于本地开发测试,每加一个业务包这里都需要加一下
|
|
13
13
|
switch (componentName) {
|
|
14
|
-
case
|
|
15
|
-
return (await import(
|
|
14
|
+
case 'tvShare':
|
|
15
|
+
return (await import('../app_tvShare/App.js')).default;
|
|
16
|
+
case 'smartHome':
|
|
17
|
+
return (await import('../app_smartHome/App.js')).default;
|
|
18
|
+
case 'shop':
|
|
19
|
+
return (await import('../app_shop/App.js')).default;
|
|
20
|
+
case 'panYuGovData':
|
|
21
|
+
return (await import('../app_panYuGovData/App.js')).default;
|
|
22
|
+
case 'myProfile':
|
|
23
|
+
return (await import('../app_myProfile/App.js')).default;
|
|
24
|
+
case 'adg':
|
|
25
|
+
return (await import('../app_adg/App.js')).default;
|
|
26
|
+
case 'orderFood':
|
|
27
|
+
return (await import('../app_orderFood/App.js')).default;
|
|
28
|
+
case 'apartment':
|
|
29
|
+
return (await import('../app_apartment/App.js')).default;
|
|
16
30
|
}
|
|
17
31
|
} catch (e) {
|
|
18
32
|
console.log(componentName, e);
|
|
@@ -21,4 +35,4 @@ async function getRemoteComponentByName(componentName) {
|
|
|
21
35
|
}
|
|
22
36
|
}
|
|
23
37
|
|
|
24
|
-
export {
|
|
38
|
+
export {getRemoteComponentByName};
|
package/bin/local-dev.js
CHANGED