Skip to content

Commit 20ce6e4

Browse files
committed
Root import types from react-native in ReactNativeTypes (#33063)
DiffTrain build for [9518f11](9518f11)
1 parent ae213e4 commit 20ce6e4

37 files changed

+2551
-2372
lines changed

compiled/eslint-plugin-react-hooks/index.js

Lines changed: 0 additions & 46 deletions
Original file line numberDiff line numberDiff line change
@@ -40446,52 +40446,6 @@ function evaluateInstruction(constants, instr) {
4044640446
}
4044740447
return null;
4044840448
}
40449-
case 'TemplateLiteral': {
40450-
if (value.subexprs.length === 0) {
40451-
const result = {
40452-
kind: 'Primitive',
40453-
value: value.quasis.map(q => q.cooked).join(''),
40454-
loc: value.loc,
40455-
};
40456-
instr.value = result;
40457-
return result;
40458-
}
40459-
if (value.subexprs.length !== value.quasis.length - 1) {
40460-
return null;
40461-
}
40462-
if (value.quasis.some(q => q.cooked === undefined)) {
40463-
return null;
40464-
}
40465-
let quasiIndex = 0;
40466-
let resultString = value.quasis[quasiIndex].cooked;
40467-
++quasiIndex;
40468-
for (const subExpr of value.subexprs) {
40469-
const subExprValue = read(constants, subExpr);
40470-
if (!subExprValue || subExprValue.kind !== 'Primitive') {
40471-
return null;
40472-
}
40473-
const expressionValue = subExprValue.value;
40474-
if (typeof expressionValue !== 'number' &&
40475-
typeof expressionValue !== 'string' &&
40476-
typeof expressionValue !== 'boolean' &&
40477-
!(typeof expressionValue === 'object' && expressionValue === null)) {
40478-
return null;
40479-
}
40480-
const suffix = value.quasis[quasiIndex].cooked;
40481-
++quasiIndex;
40482-
if (suffix === undefined) {
40483-
return null;
40484-
}
40485-
resultString = resultString.concat(expressionValue, suffix);
40486-
}
40487-
const result = {
40488-
kind: 'Primitive',
40489-
value: resultString,
40490-
loc: value.loc,
40491-
};
40492-
instr.value = result;
40493-
return result;
40494-
}
4049540449
case 'LoadLocal': {
4049640450
const placeValue = read(constants, value.place);
4049740451
if (placeValue !== null) {

compiled/facebook-www/REVISION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
21fdf308a1a01af69c28c00a70086aa1bd4c2411
1+
9518f1185621aecb99fd72385cdb137c6e8bd8fe
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
21fdf308a1a01af69c28c00a70086aa1bd4c2411
1+
9518f1185621aecb99fd72385cdb137c6e8bd8fe

compiled/facebook-www/React-dev.classic.js

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,6 @@ __DEV__ &&
5959
this.refs = emptyObject;
6060
this.updater = updater || ReactNoopUpdateQueue;
6161
}
62-
function noop() {}
6362
function testStringCoercion(value) {
6463
return "" + value;
6564
}
@@ -384,6 +383,7 @@ __DEV__ &&
384383
? (checkKeyStringCoercion(element.key), escape("" + element.key))
385384
: index.toString(36);
386385
}
386+
function noop$1() {}
387387
function resolveThenable(thenable) {
388388
switch (thenable.status) {
389389
case "fulfilled":
@@ -393,7 +393,7 @@ __DEV__ &&
393393
default:
394394
switch (
395395
("string" === typeof thenable.status
396-
? thenable.then(noop, noop)
396+
? thenable.then(noop$1, noop$1)
397397
: ((thenable.status = "pending"),
398398
thenable.then(
399399
function (fulfilledValue) {
@@ -646,6 +646,7 @@ __DEV__ &&
646646
(ReactSharedInternals.T = prevTransition);
647647
}
648648
}
649+
function noop() {}
649650
function addTransitionType(type) {
650651
if (enableViewTransition) {
651652
var transition = ReactSharedInternals.T;
@@ -1537,7 +1538,7 @@ __DEV__ &&
15371538
exports.useTransition = function () {
15381539
return resolveDispatcher().useTransition();
15391540
};
1540-
exports.version = "19.2.0-www-classic-21fdf308-20250508";
1541+
exports.version = "19.2.0-www-classic-9518f118-20250508";
15411542
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
15421543
"function" ===
15431544
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop &&

compiled/facebook-www/React-dev.modern.js

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,6 @@ __DEV__ &&
5959
this.refs = emptyObject;
6060
this.updater = updater || ReactNoopUpdateQueue;
6161
}
62-
function noop() {}
6362
function testStringCoercion(value) {
6463
return "" + value;
6564
}
@@ -384,6 +383,7 @@ __DEV__ &&
384383
? (checkKeyStringCoercion(element.key), escape("" + element.key))
385384
: index.toString(36);
386385
}
386+
function noop$1() {}
387387
function resolveThenable(thenable) {
388388
switch (thenable.status) {
389389
case "fulfilled":
@@ -393,7 +393,7 @@ __DEV__ &&
393393
default:
394394
switch (
395395
("string" === typeof thenable.status
396-
? thenable.then(noop, noop)
396+
? thenable.then(noop$1, noop$1)
397397
: ((thenable.status = "pending"),
398398
thenable.then(
399399
function (fulfilledValue) {
@@ -646,6 +646,7 @@ __DEV__ &&
646646
(ReactSharedInternals.T = prevTransition);
647647
}
648648
}
649+
function noop() {}
649650
function addTransitionType(type) {
650651
if (enableViewTransition) {
651652
var transition = ReactSharedInternals.T;
@@ -1537,7 +1538,7 @@ __DEV__ &&
15371538
exports.useTransition = function () {
15381539
return resolveDispatcher().useTransition();
15391540
};
1540-
exports.version = "19.2.0-www-modern-21fdf308-20250508";
1541+
exports.version = "19.2.0-www-modern-9518f118-20250508";
15411542
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
15421543
"function" ===
15431544
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop &&

compiled/facebook-www/React-prod.classic.js

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -90,9 +90,8 @@ var pureComponentPrototype = (PureComponent.prototype = new ComponentDummy());
9090
pureComponentPrototype.constructor = PureComponent;
9191
assign(pureComponentPrototype, Component.prototype);
9292
pureComponentPrototype.isPureReactComponent = !0;
93-
var isArrayImpl = Array.isArray;
94-
function noop() {}
95-
var ReactSharedInternals = { H: null, A: null, T: null, S: null },
93+
var isArrayImpl = Array.isArray,
94+
ReactSharedInternals = { H: null, A: null, T: null, S: null },
9695
hasOwnProperty = Object.prototype.hasOwnProperty;
9796
function ReactElement(type, key, self, source, owner, props) {
9897
self = props.ref;
@@ -153,6 +152,7 @@ function getElementKey(element, index) {
153152
? escape("" + element.key)
154153
: index.toString(36);
155154
}
155+
function noop$1() {}
156156
function resolveThenable(thenable) {
157157
switch (thenable.status) {
158158
case "fulfilled":
@@ -162,7 +162,7 @@ function resolveThenable(thenable) {
162162
default:
163163
switch (
164164
("string" === typeof thenable.status
165-
? thenable.then(noop, noop)
165+
? thenable.then(noop$1, noop$1)
166166
: ((thenable.status = "pending"),
167167
thenable.then(
168168
function (fulfilledValue) {
@@ -383,6 +383,7 @@ function startTransition(scope, options) {
383383
(ReactSharedInternals.T = prevTransition);
384384
}
385385
}
386+
function noop() {}
386387
function addTransitionType(type) {
387388
if (enableViewTransition) {
388389
var transition = ReactSharedInternals.T;
@@ -635,4 +636,4 @@ exports.useSyncExternalStore = function (
635636
exports.useTransition = function () {
636637
return ReactSharedInternals.H.useTransition();
637638
};
638-
exports.version = "19.2.0-www-classic-21fdf308-20250508";
639+
exports.version = "19.2.0-www-classic-9518f118-20250508";

compiled/facebook-www/React-prod.modern.js

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -90,9 +90,8 @@ var pureComponentPrototype = (PureComponent.prototype = new ComponentDummy());
9090
pureComponentPrototype.constructor = PureComponent;
9191
assign(pureComponentPrototype, Component.prototype);
9292
pureComponentPrototype.isPureReactComponent = !0;
93-
var isArrayImpl = Array.isArray;
94-
function noop() {}
95-
var ReactSharedInternals = { H: null, A: null, T: null, S: null },
93+
var isArrayImpl = Array.isArray,
94+
ReactSharedInternals = { H: null, A: null, T: null, S: null },
9695
hasOwnProperty = Object.prototype.hasOwnProperty;
9796
function ReactElement(type, key, self, source, owner, props) {
9897
self = props.ref;
@@ -153,6 +152,7 @@ function getElementKey(element, index) {
153152
? escape("" + element.key)
154153
: index.toString(36);
155154
}
155+
function noop$1() {}
156156
function resolveThenable(thenable) {
157157
switch (thenable.status) {
158158
case "fulfilled":
@@ -162,7 +162,7 @@ function resolveThenable(thenable) {
162162
default:
163163
switch (
164164
("string" === typeof thenable.status
165-
? thenable.then(noop, noop)
165+
? thenable.then(noop$1, noop$1)
166166
: ((thenable.status = "pending"),
167167
thenable.then(
168168
function (fulfilledValue) {
@@ -383,6 +383,7 @@ function startTransition(scope, options) {
383383
(ReactSharedInternals.T = prevTransition);
384384
}
385385
}
386+
function noop() {}
386387
function addTransitionType(type) {
387388
if (enableViewTransition) {
388389
var transition = ReactSharedInternals.T;
@@ -635,4 +636,4 @@ exports.useSyncExternalStore = function (
635636
exports.useTransition = function () {
636637
return ReactSharedInternals.H.useTransition();
637638
};
638-
exports.version = "19.2.0-www-modern-21fdf308-20250508";
639+
exports.version = "19.2.0-www-modern-9518f118-20250508";

compiled/facebook-www/React-profiling.classic.js

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -94,9 +94,8 @@ var pureComponentPrototype = (PureComponent.prototype = new ComponentDummy());
9494
pureComponentPrototype.constructor = PureComponent;
9595
assign(pureComponentPrototype, Component.prototype);
9696
pureComponentPrototype.isPureReactComponent = !0;
97-
var isArrayImpl = Array.isArray;
98-
function noop() {}
99-
var ReactSharedInternals = { H: null, A: null, T: null, S: null },
97+
var isArrayImpl = Array.isArray,
98+
ReactSharedInternals = { H: null, A: null, T: null, S: null },
10099
hasOwnProperty = Object.prototype.hasOwnProperty;
101100
function ReactElement(type, key, self, source, owner, props) {
102101
self = props.ref;
@@ -157,6 +156,7 @@ function getElementKey(element, index) {
157156
? escape("" + element.key)
158157
: index.toString(36);
159158
}
159+
function noop$1() {}
160160
function resolveThenable(thenable) {
161161
switch (thenable.status) {
162162
case "fulfilled":
@@ -166,7 +166,7 @@ function resolveThenable(thenable) {
166166
default:
167167
switch (
168168
("string" === typeof thenable.status
169-
? thenable.then(noop, noop)
169+
? thenable.then(noop$1, noop$1)
170170
: ((thenable.status = "pending"),
171171
thenable.then(
172172
function (fulfilledValue) {
@@ -387,6 +387,7 @@ function startTransition(scope, options) {
387387
(ReactSharedInternals.T = prevTransition);
388388
}
389389
}
390+
function noop() {}
390391
function addTransitionType(type) {
391392
if (enableViewTransition) {
392393
var transition = ReactSharedInternals.T;
@@ -639,7 +640,7 @@ exports.useSyncExternalStore = function (
639640
exports.useTransition = function () {
640641
return ReactSharedInternals.H.useTransition();
641642
};
642-
exports.version = "19.2.0-www-classic-21fdf308-20250508";
643+
exports.version = "19.2.0-www-classic-9518f118-20250508";
643644
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
644645
"function" ===
645646
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop &&

compiled/facebook-www/React-profiling.modern.js

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -94,9 +94,8 @@ var pureComponentPrototype = (PureComponent.prototype = new ComponentDummy());
9494
pureComponentPrototype.constructor = PureComponent;
9595
assign(pureComponentPrototype, Component.prototype);
9696
pureComponentPrototype.isPureReactComponent = !0;
97-
var isArrayImpl = Array.isArray;
98-
function noop() {}
99-
var ReactSharedInternals = { H: null, A: null, T: null, S: null },
97+
var isArrayImpl = Array.isArray,
98+
ReactSharedInternals = { H: null, A: null, T: null, S: null },
10099
hasOwnProperty = Object.prototype.hasOwnProperty;
101100
function ReactElement(type, key, self, source, owner, props) {
102101
self = props.ref;
@@ -157,6 +156,7 @@ function getElementKey(element, index) {
157156
? escape("" + element.key)
158157
: index.toString(36);
159158
}
159+
function noop$1() {}
160160
function resolveThenable(thenable) {
161161
switch (thenable.status) {
162162
case "fulfilled":
@@ -166,7 +166,7 @@ function resolveThenable(thenable) {
166166
default:
167167
switch (
168168
("string" === typeof thenable.status
169-
? thenable.then(noop, noop)
169+
? thenable.then(noop$1, noop$1)
170170
: ((thenable.status = "pending"),
171171
thenable.then(
172172
function (fulfilledValue) {
@@ -387,6 +387,7 @@ function startTransition(scope, options) {
387387
(ReactSharedInternals.T = prevTransition);
388388
}
389389
}
390+
function noop() {}
390391
function addTransitionType(type) {
391392
if (enableViewTransition) {
392393
var transition = ReactSharedInternals.T;
@@ -639,7 +640,7 @@ exports.useSyncExternalStore = function (
639640
exports.useTransition = function () {
640641
return ReactSharedInternals.H.useTransition();
641642
};
642-
exports.version = "19.2.0-www-modern-21fdf308-20250508";
643+
exports.version = "19.2.0-www-modern-9518f118-20250508";
643644
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
644645
"function" ===
645646
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop &&

0 commit comments

Comments
 (0)