@wavemaker/rn-codegen 11.3.6-next.25089 → 11.3.6-next.25090
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/package.json
CHANGED
|
@@ -10,62 +10,65 @@
|
|
|
10
10
|
},
|
|
11
11
|
"dependencies": {
|
|
12
12
|
"@unimodules/react-native-adapter": "6.3.9",
|
|
13
|
-
"@wavemaker/app-rn-runtime": "11.3.6-next.
|
|
14
|
-
"@wavemaker/variables": "11.3.6-next.
|
|
15
|
-
"axios": "
|
|
13
|
+
"@wavemaker/app-rn-runtime": "11.3.6-next.25090",
|
|
14
|
+
"@wavemaker/variables": "11.3.6-next.25090",
|
|
15
|
+
"axios": "^1.4.0",
|
|
16
16
|
"css-mediaquery": "^0.1.2",
|
|
17
|
-
"deprecated-react-native-prop-types": "~
|
|
18
|
-
"expo": "
|
|
17
|
+
"deprecated-react-native-prop-types": "~4.1.0",
|
|
18
|
+
"expo": "48.0.18",
|
|
19
19
|
"@expo/vector-icons": "~13.0.0",
|
|
20
|
-
"expo-font": "
|
|
21
|
-
"expo-file-system": "
|
|
22
|
-
"expo-camera": "~13.1
|
|
23
|
-
"expo-av": "~
|
|
24
|
-
"expo-barcode-scanner": "~12.
|
|
25
|
-
"expo-web-browser": "~12.
|
|
26
|
-
"expo-device": "~5.
|
|
27
|
-
"expo-network": "~5.
|
|
28
|
-
"expo-location": "~15.
|
|
29
|
-
"expo-localization": "~14.
|
|
30
|
-
"expo-contacts": "~
|
|
31
|
-
"expo-calendar": "~11.
|
|
32
|
-
"expo-splash-screen": "~0.
|
|
33
|
-
"expo-document-picker": "~11.
|
|
34
|
-
"expo-constants": "14.
|
|
20
|
+
"expo-font": "^11.1.1",
|
|
21
|
+
"expo-file-system": "15.2.2",
|
|
22
|
+
"expo-camera": "~13.2.1",
|
|
23
|
+
"expo-av": "~13.2.1",
|
|
24
|
+
"expo-barcode-scanner": "~12.3.2",
|
|
25
|
+
"expo-web-browser": "~12.1.1",
|
|
26
|
+
"expo-device": "~5.2.1",
|
|
27
|
+
"expo-network": "~5.2.1",
|
|
28
|
+
"expo-location": "~15.1.1",
|
|
29
|
+
"expo-localization": "~14.1.1",
|
|
30
|
+
"expo-contacts": "~12.0.1",
|
|
31
|
+
"expo-calendar": "~11.1.1",
|
|
32
|
+
"expo-splash-screen": "~0.18.2",
|
|
33
|
+
"expo-document-picker": "~11.2.2",
|
|
34
|
+
"expo-constants": "14.2.1",
|
|
35
|
+
"@react-native/assets": "1.0.0",
|
|
35
36
|
"hermes-engine": "0.11.0",
|
|
36
|
-
"react": "18.
|
|
37
|
-
"react-dom": "18.
|
|
38
|
-
"react-native": "0.
|
|
39
|
-
"react-native-web": "0.18.12",
|
|
40
|
-
"@react-native-async-storage/async-storage": "
|
|
37
|
+
"react": "18.2.0",
|
|
38
|
+
"react-dom": "18.2.0",
|
|
39
|
+
"react-native": "0.71.8",
|
|
40
|
+
"react-native-web": "~0.18.12",
|
|
41
|
+
"@react-native-async-storage/async-storage": "^1.17.11",
|
|
41
42
|
"@react-native-community/netinfo": "^9.3.7",
|
|
42
|
-
"react-native-gesture-handler": "~2.
|
|
43
|
+
"react-native-gesture-handler": "~2.9.0",
|
|
43
44
|
"react-native-reanimated": "^1.13.2",
|
|
44
|
-
"react-native-bundle-splitter": "^2.
|
|
45
|
-
"react-native-safe-area-context": "4.
|
|
46
|
-
"@react-native-community/datetimepicker": "6.
|
|
47
|
-
"@react-native-community/slider": "4.
|
|
48
|
-
"react-native-circular-progress": "^1.3.
|
|
49
|
-
"@react-native-masked-view/masked-view": "^0.2.
|
|
45
|
+
"react-native-bundle-splitter": "^2.2.3",
|
|
46
|
+
"react-native-safe-area-context": "4.5.3",
|
|
47
|
+
"@react-native-community/datetimepicker": "^6.7.3",
|
|
48
|
+
"@react-native-community/slider": "^4.4.1",
|
|
49
|
+
"react-native-circular-progress": "^1.3.9",
|
|
50
|
+
"@react-native-masked-view/masked-view": "^0.2.8",
|
|
50
51
|
"react-native-snap-carousel": "^3.9.1",
|
|
51
52
|
"react-native-svg": "13.4.0",
|
|
52
53
|
"react-native-ssl-public-key-pinning": "1.0.5",
|
|
53
|
-
"victory-native": "^36.
|
|
54
|
-
"@react-navigation/native": "^6.0.
|
|
55
|
-
"react-native-pager-view": "6.
|
|
56
|
-
"react-native-webview": "11.
|
|
57
|
-
"react-native-vector-icons": "~
|
|
58
|
-
"@react-navigation/drawer": "^6.
|
|
59
|
-
"react-native-screens": "~3.
|
|
54
|
+
"victory-native": "^36.6.11",
|
|
55
|
+
"@react-navigation/native": "^6.0.16",
|
|
56
|
+
"react-native-pager-view": "6.1.2",
|
|
57
|
+
"react-native-webview": "~11.26.0",
|
|
58
|
+
"react-native-vector-icons": "~9.2.0",
|
|
59
|
+
"@react-navigation/drawer": "^6.6.2",
|
|
60
|
+
"react-native-screens": "~3.20.0",
|
|
60
61
|
"react-native-svg-transformer": "^1.0.0",
|
|
61
|
-
"lottie-react-native": "^5.1.
|
|
62
|
+
"lottie-react-native": "^5.1.4",
|
|
62
63
|
"react-lottie-player": "^1.5.4",
|
|
63
64
|
"expo-linear-gradient": "~12.0.1",
|
|
64
65
|
"setimmediate": "1.0.5",
|
|
65
66
|
"react-native-restart": "~0.0.24",
|
|
67
|
+
"@expo/webpack-config": "18.0.1",
|
|
66
68
|
"victory": "^36.5.3"
|
|
67
69
|
},
|
|
68
70
|
"devDependencies": {
|
|
71
|
+
"webpack-dev-middleware": "6.1.1",
|
|
69
72
|
"react-devtools-core": "4.26.1",
|
|
70
73
|
"@babel/cli": "^7.14.5",
|
|
71
74
|
"@babel/core": "7.20.2",
|
|
@@ -51,6 +51,46 @@ class EsBuilder {
|
|
|
51
51
|
});
|
|
52
52
|
}
|
|
53
53
|
|
|
54
|
+
async patchReactNativeAssets() {
|
|
55
|
+
const path = `${__dirname}/../node_modules/@react-native/assets/`
|
|
56
|
+
fs.removeSync(path+'registry.js');
|
|
57
|
+
const registry_content = `
|
|
58
|
+
'use strict';
|
|
59
|
+
|
|
60
|
+
export type PackagerAsset = {
|
|
61
|
+
__packager_asset: boolean,
|
|
62
|
+
fileSystemLocation: string,
|
|
63
|
+
httpServerLocation: string,
|
|
64
|
+
width?: number,
|
|
65
|
+
height?: number,
|
|
66
|
+
scales: Array<number>,
|
|
67
|
+
hash: string,
|
|
68
|
+
name: string,
|
|
69
|
+
type: string,
|
|
70
|
+
};
|
|
71
|
+
|
|
72
|
+
const assets: Array<PackagerAsset> = [];
|
|
73
|
+
|
|
74
|
+
export function registerAsset(asset: PackagerAsset): number {
|
|
75
|
+
// push returns new array length, so the first asset will
|
|
76
|
+
// get id 1 (not 0) to make the value truthy
|
|
77
|
+
return assets.push(asset);
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
export function getAssetByID(assetId: number): PackagerAsset {
|
|
81
|
+
return assets[assetId - 1];
|
|
82
|
+
}
|
|
83
|
+
`;
|
|
84
|
+
fs.writeFileSync(path+'registry.ts', registry_content);
|
|
85
|
+
const content = fs.readFileSync(path+'path-support.js', 'utf-8');
|
|
86
|
+
fs.removeSync(path+'path-support.js')
|
|
87
|
+
fs.writeFileSync(path+'path-support.ts', content);
|
|
88
|
+
await readAndReplaceFileContent(path+'path-support.ts', (content)=>{
|
|
89
|
+
return content.replace(`import type {PackagerAsset} from './registry.js';`,`import type {PackagerAsset} from './registry.ts';`)
|
|
90
|
+
.replace(` | $TEMPORARY$string<'raw'> `, '');
|
|
91
|
+
});
|
|
92
|
+
}
|
|
93
|
+
|
|
54
94
|
async patchReactNativeWeb() {
|
|
55
95
|
const path = `${__dirname}/../node_modules/react-native-web/dist/cjs/exports/render/index.js`;
|
|
56
96
|
await readAndReplaceFileContent(path, (content) => {
|
|
@@ -125,6 +165,7 @@ class EsBuilder {
|
|
|
125
165
|
.then(() => this.patchPackageLib(['@koale/useworker', 'victory']))
|
|
126
166
|
.then(() => this.patchWithDevTools('expo/build/launch/withDevTools.js'))
|
|
127
167
|
.then(() => this.patchReactNativeWeb())
|
|
168
|
+
.then(() => this.patchReactNativeAssets())
|
|
128
169
|
.then(() => {
|
|
129
170
|
console.log('*********** LIBRARIES ARE BUILT FOR ESBUILD **************');
|
|
130
171
|
}, (e) => {
|