@vxrn/react-native-prebuilt 1.27.1 → 2.0.0-beta.45.1
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/dist/cjs/index.cjs +329 -205
- package/dist/cjs/index.native.cjs +433 -0
- package/dist/cjs/index.native.js +341 -215
- package/dist/cjs/index.native.js.map +1 -1
- package/dist/esm/index.js +315 -182
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/index.mjs +315 -182
- package/dist/esm/index.mjs.map +1 -1
- package/dist/esm/index.native.js +325 -191
- package/dist/esm/index.native.js.map +1 -1
- package/package.json +5 -5
- package/dist/cjs/index.test.cjs +0 -34
- package/dist/cjs/index.test.native.js +0 -37
- package/dist/cjs/index.test.native.js.map +0 -1
- package/dist/esm/index.test.mjs +0 -11
- package/dist/esm/index.test.mjs.map +0 -1
- package/dist/esm/index.test.native.js +0 -11
- package/dist/esm/index.test.native.js.map +0 -1
- package/types/index.test.d.ts +0 -2
- package/types/index.test.d.ts.map +0 -1
package/dist/cjs/index.cjs
CHANGED
|
@@ -5,39 +5,32 @@ var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
|
5
5
|
var __getProtoOf = Object.getPrototypeOf;
|
|
6
6
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
7
|
var __export = (target, all) => {
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
8
|
+
for (var name in all) __defProp(target, name, {
|
|
9
|
+
get: all[name],
|
|
10
|
+
enumerable: true
|
|
11
|
+
});
|
|
12
12
|
};
|
|
13
13
|
var __copyProps = (to, from, except, desc) => {
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
14
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
15
|
+
for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
|
|
16
|
+
get: () => from[key],
|
|
17
|
+
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
|
|
18
|
+
});
|
|
19
|
+
}
|
|
20
|
+
return to;
|
|
21
21
|
};
|
|
22
|
-
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
26
|
-
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
27
|
-
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", {
|
|
28
|
-
value: mod,
|
|
29
|
-
enumerable: true
|
|
22
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", {
|
|
23
|
+
value: mod,
|
|
24
|
+
enumerable: true
|
|
30
25
|
}) : target, mod));
|
|
31
|
-
var __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
|
|
32
|
-
value: true
|
|
33
|
-
}), mod);
|
|
26
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
34
27
|
var index_exports = {};
|
|
35
28
|
__export(index_exports, {
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
29
|
+
RExports: () => RExports,
|
|
30
|
+
RNExportNames: () => RNExportNames,
|
|
31
|
+
buildReact: () => buildReact,
|
|
32
|
+
buildReactJSX: () => buildReactJSX,
|
|
33
|
+
buildReactNative: () => buildReactNative
|
|
41
34
|
});
|
|
42
35
|
module.exports = __toCommonJS(index_exports);
|
|
43
36
|
var import_utils = require("@vxrn/utils");
|
|
@@ -48,176 +41,190 @@ var import_promises = require("node:fs/promises");
|
|
|
48
41
|
var import_node_module = require("node:module");
|
|
49
42
|
const import_meta = {};
|
|
50
43
|
const requireResolve = "url" in import_meta ? (0, import_node_module.createRequire)(import_meta.url).resolve : require.resolve;
|
|
51
|
-
const external = [
|
|
44
|
+
const external = [
|
|
45
|
+
"react",
|
|
46
|
+
"react/jsx-runtime",
|
|
47
|
+
"react/jsx-dev-runtime"
|
|
48
|
+
];
|
|
52
49
|
async function buildReactJSX(options = {}) {
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
50
|
+
const isProd = options.define?.["__DEV__"] === "false";
|
|
51
|
+
return (0, import_esbuild.build)({
|
|
52
|
+
bundle: true,
|
|
53
|
+
entryPoints: [requireResolve("react/jsx-dev-runtime")],
|
|
54
|
+
format: "cjs",
|
|
55
|
+
target: "node16",
|
|
56
|
+
jsx: "transform",
|
|
57
|
+
jsxFactory: "react",
|
|
58
|
+
allowOverwrite: true,
|
|
59
|
+
platform: "node",
|
|
60
|
+
define: {
|
|
61
|
+
__DEV__: "true",
|
|
62
|
+
"process.env.NODE_ENV": `"development"`
|
|
63
|
+
},
|
|
64
|
+
external,
|
|
65
|
+
logLevel: "warning",
|
|
66
|
+
...options
|
|
67
|
+
}).then(async () => {
|
|
68
|
+
const bundled = await (0, import_promises.readFile)(options.outfile, "utf-8");
|
|
69
|
+
const outCode = `
|
|
73
70
|
const run = () => {
|
|
74
|
-
${(0, import_utils.mustReplace)(bundled, [
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
71
|
+
${(0, import_utils.mustReplace)(bundled, [
|
|
72
|
+
...isProd ? [{
|
|
73
|
+
find: /module\.exports = require_react_jsx_runtime_production([a-z_]*)\(\);/,
|
|
74
|
+
replace: `return require_react_jsx_runtime_production$1();`
|
|
75
|
+
}] : [{
|
|
76
|
+
find: `module.exports = require_react_jsx_dev_runtime_development();`,
|
|
77
|
+
replace: `return require_react_jsx_dev_runtime_development();`
|
|
78
|
+
}],
|
|
79
|
+
{
|
|
80
|
+
find: `process.env.VXRN_REACT_19`,
|
|
81
|
+
replace: "false",
|
|
82
|
+
optional: true
|
|
83
|
+
},
|
|
84
|
+
{
|
|
85
|
+
find: `Object.assign(exports, eval("require('@vxrn/vendor/react-jsx-19')"));`,
|
|
86
|
+
optional: true,
|
|
87
|
+
replace: ``
|
|
88
|
+
}
|
|
89
|
+
])}
|
|
90
90
|
}
|
|
91
91
|
const __mod__ = run()
|
|
92
|
-
${[
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
92
|
+
${[
|
|
93
|
+
"jsx",
|
|
94
|
+
"jsxs",
|
|
95
|
+
"jsxDEV",
|
|
96
|
+
"Fragment"
|
|
97
|
+
].map((n) => `export const ${n} = __mod__.${n} || __mod__.jsx || ${(() => {
|
|
98
|
+
if (n === "jsxs") {
|
|
99
|
+
return "function (type, props, key) { return __mod__.jsxDEV(type, props, key, true) }";
|
|
100
|
+
}
|
|
101
|
+
return "__mod__.jsxDEV";
|
|
102
|
+
})()}`).join("\n")}
|
|
98
103
|
`;
|
|
99
|
-
|
|
100
|
-
|
|
104
|
+
await import_fs_extra.default.writeFile(options.outfile, outCode);
|
|
105
|
+
});
|
|
101
106
|
}
|
|
102
107
|
async function buildReact(options = {}) {
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
108
|
+
const isProd = options.define?.["__DEV__"] === "false";
|
|
109
|
+
return (0, import_esbuild.build)({
|
|
110
|
+
bundle: true,
|
|
111
|
+
entryPoints: [requireResolve("react")],
|
|
112
|
+
format: "cjs",
|
|
113
|
+
target: "node16",
|
|
114
|
+
jsx: "transform",
|
|
115
|
+
jsxFactory: "react",
|
|
116
|
+
allowOverwrite: true,
|
|
117
|
+
platform: "node",
|
|
118
|
+
define: {
|
|
119
|
+
__DEV__: "true",
|
|
120
|
+
"process.env.NODE_ENV": `"development"`
|
|
121
|
+
},
|
|
122
|
+
logLevel: "warning",
|
|
123
|
+
external,
|
|
124
|
+
...options
|
|
125
|
+
}).then(async () => {
|
|
126
|
+
const bundled = await (0, import_promises.readFile)(options.outfile, "utf-8");
|
|
127
|
+
const outCode = `
|
|
123
128
|
const run = () => {
|
|
124
|
-
${(0, import_utils.mustReplace)(bundled, [
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
129
|
+
${(0, import_utils.mustReplace)(bundled, [
|
|
130
|
+
isProd ? {
|
|
131
|
+
find: /module\.exports = require_react_production([a-z_]*)\(\);/,
|
|
132
|
+
replace: "return require_react_production$1();"
|
|
133
|
+
} : {
|
|
134
|
+
find: /module\.exports = require_react_development([a-z_]*)\(\);/,
|
|
135
|
+
replace: "return require_react_development$1();"
|
|
136
|
+
},
|
|
137
|
+
{
|
|
138
|
+
find: `process.env.VXRN_REACT_19`,
|
|
139
|
+
optional: true,
|
|
140
|
+
replace: "false"
|
|
141
|
+
},
|
|
142
|
+
{
|
|
143
|
+
find: `Object.assign(exports, eval("require('@vxrn/vendor/react-19')"));`,
|
|
144
|
+
optional: true,
|
|
145
|
+
replace: ``
|
|
146
|
+
}
|
|
147
|
+
])}
|
|
139
148
|
}
|
|
140
149
|
const __mod__ = run()
|
|
141
|
-
${RExports.map(n => `export const ${n} = __mod__.${n}`).join("\n")}
|
|
150
|
+
${RExports.map((n) => `export const ${n} = __mod__.${n}`).join("\n")}
|
|
142
151
|
export default __mod__
|
|
143
152
|
`;
|
|
144
|
-
|
|
145
|
-
|
|
153
|
+
await import_fs_extra.default.writeFile(options.outfile, outCode);
|
|
154
|
+
});
|
|
146
155
|
}
|
|
147
|
-
async function buildReactNative(options = {}, {
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
});
|
|
199
|
-
if (input.path.endsWith("react-native/index.js")) {
|
|
200
|
-
outagain = outagain.replace(/module\.exports *= *{/, `
|
|
156
|
+
async function buildReactNative(options = {}, { platform }) {
|
|
157
|
+
return (0, import_esbuild.build)({
|
|
158
|
+
bundle: true,
|
|
159
|
+
entryPoints: [requireResolve("react-native")],
|
|
160
|
+
format: "cjs",
|
|
161
|
+
target: "node20",
|
|
162
|
+
allowOverwrite: true,
|
|
163
|
+
platform: "node",
|
|
164
|
+
external,
|
|
165
|
+
loader: {
|
|
166
|
+
".png": "dataurl",
|
|
167
|
+
".jpg": "dataurl",
|
|
168
|
+
".jpeg": "dataurl",
|
|
169
|
+
".gif": "dataurl"
|
|
170
|
+
},
|
|
171
|
+
define: {
|
|
172
|
+
__DEV__: "true",
|
|
173
|
+
"process.env.NODE_ENV": `"development"`
|
|
174
|
+
},
|
|
175
|
+
logLevel: "warning",
|
|
176
|
+
resolveExtensions: [
|
|
177
|
+
`.${platform}.js`,
|
|
178
|
+
".native.js",
|
|
179
|
+
".js",
|
|
180
|
+
".jsx",
|
|
181
|
+
".json",
|
|
182
|
+
".mjs"
|
|
183
|
+
],
|
|
184
|
+
...options,
|
|
185
|
+
plugins: [{
|
|
186
|
+
name: "remove-flow",
|
|
187
|
+
setup(build2) {
|
|
188
|
+
build2.onResolve({ filter: /HMRClient/ }, async (input) => {
|
|
189
|
+
const path = requireResolve("@vxrn/vite-native-hmr");
|
|
190
|
+
const possibleEsmPath = path.replace("/cjs/index.cjs", "/esm/index.native.js");
|
|
191
|
+
if (import_fs_extra.default.pathExistsSync(possibleEsmPath)) {
|
|
192
|
+
return { path: possibleEsmPath };
|
|
193
|
+
}
|
|
194
|
+
return { path };
|
|
195
|
+
});
|
|
196
|
+
build2.onLoad({ filter: /.*\.js$/ }, async (input) => {
|
|
197
|
+
if (!input.path.includes("react-native") && !input.path.includes(`vite-native-hmr`)) {
|
|
198
|
+
return;
|
|
199
|
+
}
|
|
200
|
+
const code = await (0, import_promises.readFile)(input.path, "utf-8");
|
|
201
|
+
let outagain = await (0, import_vite_flow.transformFlowBabel)(code, {
|
|
202
|
+
development: true,
|
|
203
|
+
path: input.path
|
|
204
|
+
});
|
|
205
|
+
if (input.path.endsWith("react-native/index.js")) {
|
|
206
|
+
outagain = outagain.replace(/module\.exports *= *{/, `
|
|
201
207
|
module.exports = {
|
|
202
208
|
get _vxrnInternalReactNativeVersionDoNotUse() {
|
|
203
209
|
return require("./Libraries/Core/ReactNativeVersion").default;
|
|
204
210
|
},
|
|
205
211
|
`.trim());
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
212
|
+
}
|
|
213
|
+
return {
|
|
214
|
+
contents: outagain,
|
|
215
|
+
loader: "jsx"
|
|
216
|
+
};
|
|
217
|
+
});
|
|
218
|
+
}
|
|
219
|
+
}]
|
|
220
|
+
}).then(async () => {
|
|
221
|
+
const bundled = await (0, import_promises.readFile)(options.outfile, "utf-8");
|
|
222
|
+
const outCode = `
|
|
217
223
|
const run = () => {
|
|
218
|
-
${(0, import_utils.mustReplace)(bundled, [
|
|
219
|
-
|
|
220
|
-
|
|
224
|
+
${(0, import_utils.mustReplace)(bundled, [
|
|
225
|
+
{
|
|
226
|
+
find: esbuildCommonJSFunction,
|
|
227
|
+
replace: `
|
|
221
228
|
// replaced commonjs function to allow importing internals
|
|
222
229
|
var __commonJS = function __commonJS(cb, mod) {
|
|
223
230
|
var path = __getOwnPropNames(cb)[0];
|
|
@@ -253,29 +260,31 @@ var __commonJS = function __commonJS(cb, mod) {
|
|
|
253
260
|
return __require;
|
|
254
261
|
};
|
|
255
262
|
`
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
263
|
+
},
|
|
264
|
+
{
|
|
265
|
+
find: /module\.exports = require_(react_native|index)\(\);/,
|
|
266
|
+
replace: [
|
|
267
|
+
`const rn = require_$1();`,
|
|
268
|
+
`rn.AssetRegistry = require_registry();`,
|
|
269
|
+
`require_ReactFabric();`,
|
|
270
|
+
`if (typeof require_InitializeCore === 'function') { require_InitializeCore(); }`,
|
|
271
|
+
`return rn;`
|
|
272
|
+
].join("\n")
|
|
273
|
+
},
|
|
274
|
+
{
|
|
275
|
+
find: `originalMessage = e.message || "";`,
|
|
276
|
+
replace: `originalMessage = "" + (e.stack || "");`
|
|
277
|
+
}
|
|
278
|
+
])}
|
|
269
279
|
}
|
|
270
280
|
const RN = run()
|
|
271
281
|
|
|
272
|
-
export const REACT_NATIVE_ESM_MANUAL_EXPORTS_START = 'REACT_NATIVE_ESM_MANUAL_EXPORTS_START';${
|
|
273
|
-
""}
|
|
274
|
-
${RNExportNames.map(n => `export const ${n} = RN.${n}`).join("\n")}
|
|
282
|
+
export const REACT_NATIVE_ESM_MANUAL_EXPORTS_START = 'REACT_NATIVE_ESM_MANUAL_EXPORTS_START';${""}
|
|
283
|
+
${RNExportNames.map((n) => `export const ${n} = RN.${n}`).join("\n")}
|
|
275
284
|
export const REACT_NATIVE_ESM_MANUAL_EXPORTS_END = 'REACT_NATIVE_ESM_MANUAL_EXPORTS_END';
|
|
276
285
|
`;
|
|
277
|
-
|
|
278
|
-
|
|
286
|
+
await import_fs_extra.default.writeFile(options.outfile, outCode);
|
|
287
|
+
});
|
|
279
288
|
}
|
|
280
289
|
const esbuildCommonJSFunction = `var __commonJS = (cb, mod) => function __require() {
|
|
281
290
|
try {
|
|
@@ -284,13 +293,128 @@ const esbuildCommonJSFunction = `var __commonJS = (cb, mod) => function __requir
|
|
|
284
293
|
throw mod = 0, e;
|
|
285
294
|
}
|
|
286
295
|
};`;
|
|
287
|
-
const RNExportNames = [
|
|
288
|
-
|
|
296
|
+
const RNExportNames = [
|
|
297
|
+
"registerCallableModule",
|
|
298
|
+
"AccessibilityInfo",
|
|
299
|
+
"ActivityIndicator",
|
|
300
|
+
"Button",
|
|
301
|
+
"DrawerLayoutAndroid",
|
|
302
|
+
"FlatList",
|
|
303
|
+
"Image",
|
|
304
|
+
"ImageBackground",
|
|
305
|
+
"InputAccessoryView",
|
|
306
|
+
"KeyboardAvoidingView",
|
|
307
|
+
"Modal",
|
|
308
|
+
"Pressable",
|
|
309
|
+
"RefreshControl",
|
|
310
|
+
"SafeAreaView",
|
|
311
|
+
"ScrollView",
|
|
312
|
+
"SectionList",
|
|
313
|
+
"StatusBar",
|
|
314
|
+
"Switch",
|
|
315
|
+
"Text",
|
|
316
|
+
"TextInput",
|
|
317
|
+
"Touchable",
|
|
318
|
+
"TouchableHighlight",
|
|
319
|
+
"TouchableNativeFeedback",
|
|
320
|
+
"TouchableOpacity",
|
|
321
|
+
"TouchableWithoutFeedback",
|
|
322
|
+
"View",
|
|
323
|
+
"VirtualizedList",
|
|
324
|
+
"VirtualizedSectionList",
|
|
325
|
+
"ActionSheetIOS",
|
|
326
|
+
"Alert",
|
|
327
|
+
"Animated",
|
|
328
|
+
"Appearance",
|
|
329
|
+
"AppRegistry",
|
|
330
|
+
"AppState",
|
|
331
|
+
"BackHandler",
|
|
332
|
+
"DeviceInfo",
|
|
333
|
+
"DevSettings",
|
|
334
|
+
"Dimensions",
|
|
335
|
+
"Easing",
|
|
336
|
+
"findNodeHandle",
|
|
337
|
+
"I18nManager",
|
|
338
|
+
"InteractionManager",
|
|
339
|
+
"Keyboard",
|
|
340
|
+
"LayoutAnimation",
|
|
341
|
+
"Linking",
|
|
342
|
+
"LogBox",
|
|
343
|
+
"NativeDialogManagerAndroid",
|
|
344
|
+
"NativeEventEmitter",
|
|
345
|
+
"Networking",
|
|
346
|
+
"PanResponder",
|
|
347
|
+
"PermissionsAndroid",
|
|
348
|
+
"PixelRatio",
|
|
349
|
+
"Settings",
|
|
350
|
+
"Share",
|
|
351
|
+
"StyleSheet",
|
|
352
|
+
"Systrace",
|
|
353
|
+
"ToastAndroid",
|
|
354
|
+
"TurboModuleRegistry",
|
|
355
|
+
"UIManager",
|
|
356
|
+
"unstable_batchedUpdates",
|
|
357
|
+
"useAnimatedValue",
|
|
358
|
+
"useAnimatedValueXY",
|
|
359
|
+
"useAnimatedColor",
|
|
360
|
+
"useColorScheme",
|
|
361
|
+
"usePressability",
|
|
362
|
+
"useWindowDimensions",
|
|
363
|
+
"UTFSequence",
|
|
364
|
+
"Vibration",
|
|
365
|
+
"DeviceEventEmitter",
|
|
366
|
+
"DynamicColorIOS",
|
|
367
|
+
"EventEmitter",
|
|
368
|
+
"NativeAppEventEmitter",
|
|
369
|
+
"NativeModules",
|
|
370
|
+
"Platform",
|
|
371
|
+
"PlatformColor",
|
|
372
|
+
"processColor",
|
|
373
|
+
"requireNativeComponent",
|
|
374
|
+
"RootTagContext",
|
|
375
|
+
"AssetRegistry"
|
|
376
|
+
];
|
|
377
|
+
const RExports = [
|
|
378
|
+
"Children",
|
|
379
|
+
"Component",
|
|
380
|
+
"Fragment",
|
|
381
|
+
"Profiler",
|
|
382
|
+
"PureComponent",
|
|
383
|
+
"StrictMode",
|
|
384
|
+
"Suspense",
|
|
385
|
+
"__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED",
|
|
386
|
+
"__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE",
|
|
387
|
+
"cloneElement",
|
|
388
|
+
"createContext",
|
|
389
|
+
"createElement",
|
|
390
|
+
"createFactory",
|
|
391
|
+
"createRef",
|
|
392
|
+
"forwardRef",
|
|
393
|
+
"isValidElement",
|
|
394
|
+
"lazy",
|
|
395
|
+
"memo",
|
|
396
|
+
"startTransition",
|
|
397
|
+
"unstable_act",
|
|
398
|
+
"useCallback",
|
|
399
|
+
"useContext",
|
|
400
|
+
"useDebugValue",
|
|
401
|
+
"useDeferredValue",
|
|
402
|
+
"useEffect",
|
|
403
|
+
"useId",
|
|
404
|
+
"useImperativeHandle",
|
|
405
|
+
"useInsertionEffect",
|
|
406
|
+
"useLayoutEffect",
|
|
407
|
+
"useMemo",
|
|
408
|
+
"useReducer",
|
|
409
|
+
"useRef",
|
|
410
|
+
"useState",
|
|
411
|
+
"useSyncExternalStore",
|
|
412
|
+
"useTransition",
|
|
413
|
+
"version",
|
|
414
|
+
"act",
|
|
415
|
+
"cache",
|
|
416
|
+
"unstable_useCacheRefresh",
|
|
417
|
+
"use",
|
|
418
|
+
"useActionState",
|
|
419
|
+
"useOptimistic"
|
|
289
420
|
];
|
|
290
|
-
const RExports = ["Children", "Component", "Fragment", "Profiler", "PureComponent", "StrictMode", "Suspense", "__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED",
|
|
291
|
-
// For React 18
|
|
292
|
-
"__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE",
|
|
293
|
-
// For React 19
|
|
294
|
-
"cloneElement", "createContext", "createElement", "createFactory", "createRef", "forwardRef", "isValidElement", "lazy", "memo", "startTransition", "unstable_act", "useCallback", "useContext", "useDebugValue", "useDeferredValue", "useEffect", "useId", "useImperativeHandle", "useInsertionEffect", "useLayoutEffect", "useMemo", "useReducer", "useRef", "useState", "useSyncExternalStore", "useTransition", "version",
|
|
295
|
-
// Added in React 19
|
|
296
|
-
"act", "cache", "unstable_useCacheRefresh", "use", "useActionState", "useOptimistic"];
|