@wavemaker/rn-codegen 11.4.0-next.25703 → 11.4.0-next.25705
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.
- rn-codegen/command.js +12 -5
- rn-codegen/command.js.map +1 -1
- rn-codegen/index.js +1 -1
- rn-codegen/index.js.map +1 -1
- rn-codegen/package.json +1 -1
- rn-codegen/src/app.generator.js +46 -7
- rn-codegen/src/app.generator.js.map +1 -1
- rn-codegen/src/profiles/expo-preview.profile.js +1 -1
- rn-codegen/src/profiles/expo-preview.profile.js.map +1 -1
- rn-codegen/src/templates/build-info/info.html +64 -0
- rn-codegen/src/templates/entity-provider.template +21 -0
- rn-codegen/src/templates/package.web.json +56 -55
- rn-codegen/src/templates/pages-config.template +0 -8
- rn-codegen/src/templates/project/app.json +1 -0
- rn-codegen/src/templates/project/esbuild/esbuild.script.js +1 -1
- rn-codegen/src/templates/project/index.js +8 -0
- rn-codegen/src/templates/project/metro.config.js +26 -20
- rn-codegen/src/templates/project/package-lock.json +4450 -3212
- rn-codegen/src/templates/project/package.json +58 -57
- rn-codegen/src/templates/variables.template +57 -8
- rn-codegen/src/transpile/components/data/form/form-action.transformer.js +13 -1
- rn-codegen/src/transpile/components/data/form/form-action.transformer.js.map +1 -1
- rn-codegen/src/transpile/components/data/form/form-field.transformer.js +8 -1
- rn-codegen/src/transpile/components/data/form/form-field.transformer.js.map +1 -1
- rn-codegen/src/transpile/components/data/liveform.transformer.js +147 -0
- rn-codegen/src/transpile/components/data/liveform.transformer.js.map +1 -0
- rn-codegen/src/transpile/components/transform-register.js +2 -0
- rn-codegen/src/transpile/components/transform-register.js.map +1 -1
- rn-codegen/src/transpile/property/property-parser.js +4 -0
- rn-codegen/src/transpile/property/property-parser.js.map +1 -1
- rn-codegen/src/utils.js +10 -10
- rn-codegen/src/utils.js.map +1 -1
- rn-codegen/src/variables/variable.transformer.js +43 -7
- rn-codegen/src/variables/variable.transformer.js.map +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"main": "
|
|
2
|
+
"main": "index.js",
|
|
3
3
|
"scripts": {
|
|
4
4
|
"start": "expo start",
|
|
5
5
|
"android": "expo start --android",
|
|
@@ -10,80 +10,81 @@
|
|
|
10
10
|
},
|
|
11
11
|
"dependencies": {
|
|
12
12
|
"@unimodules/react-native-adapter": "6.3.9",
|
|
13
|
-
"@wavemaker/app-rn-runtime": "11.4.0-next.
|
|
14
|
-
"@wavemaker/variables": "11.4.0-next.
|
|
13
|
+
"@wavemaker/app-rn-runtime": "11.4.0-next.25705",
|
|
14
|
+
"@wavemaker/variables": "11.4.0-next.25705",
|
|
15
15
|
"axios": "^1.4.0",
|
|
16
16
|
"css-mediaquery": "^0.1.2",
|
|
17
17
|
"deprecated-react-native-prop-types": "~4.1.0",
|
|
18
|
-
"expo": "
|
|
19
|
-
"@expo/vector-icons": "
|
|
20
|
-
"expo-font": "
|
|
21
|
-
"expo-file-system": "15.
|
|
22
|
-
"expo-camera": "
|
|
23
|
-
"expo-av": "
|
|
24
|
-
"expo-barcode-scanner": "
|
|
25
|
-
"expo-web-browser": "
|
|
26
|
-
"expo-device": "
|
|
27
|
-
"expo-network": "
|
|
28
|
-
"expo-location": "
|
|
29
|
-
"expo-localization": "
|
|
30
|
-
"expo-contacts": "
|
|
31
|
-
"expo-calendar": "
|
|
32
|
-
"expo-splash-screen": "
|
|
33
|
-
"expo-document-picker": "
|
|
34
|
-
"expo-constants": "14.2
|
|
18
|
+
"expo": "49.0.7",
|
|
19
|
+
"@expo/vector-icons": "13.0.0",
|
|
20
|
+
"expo-font": "11.4.0",
|
|
21
|
+
"expo-file-system": "15.4.3",
|
|
22
|
+
"expo-camera": "13.4.2",
|
|
23
|
+
"expo-av": "13.4.1",
|
|
24
|
+
"expo-barcode-scanner": "12.5.3",
|
|
25
|
+
"expo-web-browser": "12.3.2",
|
|
26
|
+
"expo-device": "5.4.0",
|
|
27
|
+
"expo-network": "5.4.0",
|
|
28
|
+
"expo-location": "16.1.0",
|
|
29
|
+
"expo-localization": "14.3.0",
|
|
30
|
+
"expo-contacts": "12.2.0",
|
|
31
|
+
"expo-calendar": "11.3.0",
|
|
32
|
+
"expo-splash-screen": "0.20.5",
|
|
33
|
+
"expo-document-picker": "11.5.4",
|
|
34
|
+
"expo-constants": "14.4.2",
|
|
35
35
|
"@react-native/assets": "1.0.0",
|
|
36
36
|
"hermes-engine": "0.11.0",
|
|
37
37
|
"react": "18.2.0",
|
|
38
38
|
"react-dom": "18.2.0",
|
|
39
|
-
"react-native": "0.
|
|
40
|
-
"react-native-web": "
|
|
41
|
-
"@react-native-async-storage/async-storage": "
|
|
42
|
-
"@react-native-community/netinfo": "
|
|
43
|
-
"react-native-gesture-handler": "
|
|
39
|
+
"react-native": "0.72.4",
|
|
40
|
+
"react-native-web": "0.18.12",
|
|
41
|
+
"@react-native-async-storage/async-storage": "1.18.2",
|
|
42
|
+
"@react-native-community/netinfo": "9.3.10",
|
|
43
|
+
"react-native-gesture-handler": "2.12.1",
|
|
44
44
|
"react-native-reanimated": "^1.13.2",
|
|
45
|
-
"react-native-bundle-splitter": "
|
|
46
|
-
"react-native-safe-area-context": "4.
|
|
47
|
-
"@react-native-community/datetimepicker": "
|
|
48
|
-
"@react-native-community/slider": "
|
|
49
|
-
"react-native-circular-progress": "
|
|
50
|
-
"@react-native-masked-view/masked-view": "
|
|
51
|
-
"react-native-snap-carousel": "
|
|
45
|
+
"react-native-bundle-splitter": "2.2.3",
|
|
46
|
+
"react-native-safe-area-context": "4.6.3",
|
|
47
|
+
"@react-native-community/datetimepicker": "7.2.0",
|
|
48
|
+
"@react-native-community/slider": "4.4.2",
|
|
49
|
+
"react-native-circular-progress": "1.3.9",
|
|
50
|
+
"@react-native-masked-view/masked-view": "0.2.9",
|
|
51
|
+
"react-native-snap-carousel": "3.9.1",
|
|
52
52
|
"react-native-svg": "13.4.0",
|
|
53
|
-
"react-native-ssl-public-key-pinning": "1.
|
|
54
|
-
"victory-native": "
|
|
55
|
-
"@react-navigation/native": "
|
|
56
|
-
"react-native-pager-view": "6.
|
|
57
|
-
"react-native-webview": "
|
|
58
|
-
"react-native-vector-icons": "
|
|
59
|
-
"@react-navigation/drawer": "
|
|
60
|
-
"react-native-screens": "
|
|
61
|
-
"react-native-svg-transformer": "
|
|
62
|
-
"lottie-react-native": "
|
|
63
|
-
"react-lottie-player": "
|
|
64
|
-
"expo-linear-gradient": "
|
|
53
|
+
"react-native-ssl-public-key-pinning": "1.1.1",
|
|
54
|
+
"victory-native": "36.6.11",
|
|
55
|
+
"@react-navigation/native": "6.1.7",
|
|
56
|
+
"react-native-pager-view": "6.2.0",
|
|
57
|
+
"react-native-webview": "13.2.2",
|
|
58
|
+
"react-native-vector-icons": "10.0.0",
|
|
59
|
+
"@react-navigation/drawer": "6.6.3",
|
|
60
|
+
"react-native-screens": "3.22.0",
|
|
61
|
+
"react-native-svg-transformer": "1.0.0",
|
|
62
|
+
"lottie-react-native": "5.1.6",
|
|
63
|
+
"react-lottie-player": "1.5.4",
|
|
64
|
+
"expo-linear-gradient": "12.3.0",
|
|
65
65
|
"setimmediate": "1.0.5",
|
|
66
|
-
"react-native-restart": "
|
|
66
|
+
"react-native-restart": "0.0.27",
|
|
67
67
|
"@expo/webpack-config": "18.0.1",
|
|
68
|
+
"@babel/core": "7.20.2",
|
|
68
69
|
"victory": "^36.5.3"
|
|
69
70
|
},
|
|
70
71
|
"devDependencies": {
|
|
71
72
|
"webpack-dev-middleware": "6.1.1",
|
|
72
|
-
"react-devtools-core": "4.
|
|
73
|
-
"@babel/cli": "
|
|
74
|
-
"
|
|
75
|
-
"esbuild": "^0.15.15",
|
|
73
|
+
"react-devtools-core": "4.28.0",
|
|
74
|
+
"@babel/cli": "7.14.5",
|
|
75
|
+
"esbuild": "0.15.15",
|
|
76
76
|
"esbuild-plugin-resolve": "1.0.3",
|
|
77
|
-
"fs-extra": "
|
|
78
|
-
"expo-modules-autolinking": "1.
|
|
79
|
-
"babel-plugin-transform-remove-console": "
|
|
80
|
-
"@babel/plugin-proposal-optional-chaining": "
|
|
81
|
-
"@babel/plugin-proposal-nullish-coalescing-operator": "
|
|
77
|
+
"fs-extra": "10.0.0",
|
|
78
|
+
"expo-modules-autolinking": "1.5.0",
|
|
79
|
+
"babel-plugin-transform-remove-console": "6.9.4",
|
|
80
|
+
"@babel/plugin-proposal-optional-chaining": "7.21.0",
|
|
81
|
+
"@babel/plugin-proposal-nullish-coalescing-operator": "7.18.6",
|
|
82
82
|
"@babel/plugin-syntax-jsx": "7.21.4"
|
|
83
83
|
},
|
|
84
84
|
"resolutions": {
|
|
85
|
+
"react-error-overlay": "6.0.9",
|
|
85
86
|
"react-native-svg": "^1.13.2",
|
|
86
|
-
"react-native-reanimated": "
|
|
87
|
+
"react-native-reanimated": "3.3.0"
|
|
87
88
|
},
|
|
88
89
|
"private": true
|
|
89
90
|
}
|
|
@@ -1,19 +1,11 @@
|
|
|
1
|
-
{{#if lazyload}}
|
|
2
|
-
import { register } from 'react-native-bundle-splitter';
|
|
3
|
-
{{else}}
|
|
4
1
|
{{#each pageConfigs}}
|
|
5
2
|
import {{name}}Component from "./{{name}}/{{name}}.component";
|
|
6
3
|
{{/each}}
|
|
7
|
-
{{/if}}
|
|
8
4
|
|
|
9
5
|
const components = {
|
|
10
6
|
{{#each pageConfigs}}
|
|
11
7
|
'{{name}}': {
|
|
12
|
-
{{#if ../lazyload}}
|
|
13
|
-
type: register({ loader: () => import('./{{name}}/{{name}}.component') }),
|
|
14
|
-
{{else}}
|
|
15
8
|
type: {{name}}Component,
|
|
16
|
-
{{/if}}
|
|
17
9
|
name: '{{name}}Component'
|
|
18
10
|
},
|
|
19
11
|
{{/each}}
|
|
@@ -52,7 +52,7 @@ class EsBuilder {
|
|
|
52
52
|
}
|
|
53
53
|
|
|
54
54
|
async patchReactNativeAssets() {
|
|
55
|
-
const path = `${__dirname}/../node_modules/@react-native/assets/`
|
|
55
|
+
const path = `${__dirname}/../node_modules/@react-native/assets-registry/`
|
|
56
56
|
fs.removeSync(path+'registry.js');
|
|
57
57
|
const registry_content = `
|
|
58
58
|
'use strict';
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { registerRootComponent } from 'expo';
|
|
2
|
+
|
|
3
|
+
import App from './App';
|
|
4
|
+
|
|
5
|
+
// registerRootComponent calls AppRegistry.registerComponent('main', () => App);
|
|
6
|
+
// It also ensures that whether you load the app in Expo Go or in a native build,
|
|
7
|
+
// the environment is set up appropriately
|
|
8
|
+
registerRootComponent(App);
|
|
@@ -1,27 +1,33 @@
|
|
|
1
|
-
const { getDefaultConfig } = require('metro-config');
|
|
1
|
+
const { getDefaultConfig } = require('expo/metro-config');
|
|
2
|
+
const path = require('path');
|
|
2
3
|
|
|
3
4
|
module.exports = (async () => {
|
|
4
5
|
try {
|
|
5
|
-
const
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
}
|
|
22
|
-
}
|
|
6
|
+
const projectRoot = __dirname;
|
|
7
|
+
const workspaceRoot = path.resolve(projectRoot, '../..');
|
|
8
|
+
const config = getDefaultConfig(projectRoot);
|
|
9
|
+
config.watchFolders = [workspaceRoot];
|
|
10
|
+
config.resolver.nodeModulesPaths = [
|
|
11
|
+
path.resolve(projectRoot, 'node_modules'),
|
|
12
|
+
path.resolve(workspaceRoot, 'node_modules')
|
|
13
|
+
];
|
|
14
|
+
config.resolver.disableHierarchicalLookup = true;
|
|
15
|
+
config.transformer = {
|
|
16
|
+
babelTransformerPath: require.resolve('react-native-svg-transformer'),
|
|
17
|
+
getTransformOptions: async () => ({
|
|
18
|
+
transform: {
|
|
19
|
+
experimentalImportSupport: false,
|
|
20
|
+
inlineRequires: false
|
|
21
|
+
}
|
|
22
|
+
})
|
|
23
|
+
}
|
|
24
|
+
config.resolver = {
|
|
25
|
+
assetExts: config.resolver.assetExts.filter(ext => ext !== 'svg'),
|
|
26
|
+
sourceExts: [...config.resolver.sourceExts, 'svg']
|
|
27
|
+
}
|
|
28
|
+
return config;
|
|
23
29
|
}
|
|
24
30
|
catch (e) {
|
|
25
31
|
console.log('error in metro config file');
|
|
26
32
|
}
|
|
27
|
-
})();
|
|
33
|
+
})();
|