mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
Back out ""React Native sync for revisions b5c6dd2...a437f3ff3""
Summary: Original commit changeset: c3c146b87fa5 Changelog: [Internal] Reviewed By: makovkastar Differential Revision: D22949053 fbshipit-source-id: 746719e44cd5d960dc14d7398f093a288ab61d88
This commit is contained in:
committed by
Facebook GitHub Bot
parent
065fbe3be5
commit
4cdb1951b4
@@ -49,10 +49,7 @@ const cleanLog = logs => {
|
||||
});
|
||||
};
|
||||
|
||||
// TODO(T71117418): Re-enable skipped LogBox integration tests once React component
|
||||
// stack frames are the same internally and in open source.
|
||||
// eslint-disable-next-line jest/no-disabled-tests
|
||||
describe.skip('LogBox', () => {
|
||||
describe('LogBox', () => {
|
||||
const {error, warn} = console;
|
||||
const mockError = jest.fn();
|
||||
const mockWarn = jest.fn();
|
||||
|
||||
@@ -0,0 +1,94 @@
|
||||
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
||||
|
||||
exports[`LogBox integrates with React and handles a fragment warning in LogBox: Log added to LogBox 1`] = `
|
||||
Array [
|
||||
Object {
|
||||
"category": "Warning: Invalid prop \`%s\` supplied to \`React.Fragment\`. React.Fragment can only have \`key\` and \`children\` props.",
|
||||
"componentStack": Array [
|
||||
Object {
|
||||
"content": "Fragment",
|
||||
"fileName": "ReactWarningFixtures.js",
|
||||
"location": Object {
|
||||
"column": -1,
|
||||
"row": 28,
|
||||
},
|
||||
},
|
||||
],
|
||||
"level": "warn",
|
||||
"message": Object {
|
||||
"content": "Warning: Invalid prop \`invalid\` supplied to \`React.Fragment\`. React.Fragment can only have \`key\` and \`children\` props.",
|
||||
"substitutions": Array [
|
||||
Object {
|
||||
"length": 7,
|
||||
"offset": 23,
|
||||
},
|
||||
],
|
||||
},
|
||||
},
|
||||
]
|
||||
`;
|
||||
|
||||
exports[`LogBox integrates with React and handles a fragment warning in LogBox: Log passed to console error 1`] = `
|
||||
Array [
|
||||
"Warning: Invalid prop \`invalid\` supplied to \`React.Fragment\`. React.Fragment can only have \`key\` and \`children\` props.
|
||||
in Fragment (at ReactWarningFixtures.js:28)",
|
||||
]
|
||||
`;
|
||||
|
||||
exports[`LogBox integrates with React and handles a fragment warning in LogBox: Log sent from React 1`] = `
|
||||
Array [
|
||||
"Warning: Invalid prop \`%s\` supplied to \`React.Fragment\`. React.Fragment can only have \`key\` and \`children\` props.%s",
|
||||
"invalid",
|
||||
"
|
||||
in Fragment (at ReactWarningFixtures.js:28)",
|
||||
]
|
||||
`;
|
||||
|
||||
exports[`LogBox integrates with React and handles a key error in LogBox: Log added to LogBox 1`] = `
|
||||
Array [
|
||||
Object {
|
||||
"category": "Warning: Each child in a list should have a unique \\"key\\" prop.%s%s See https://fb.me/react-warning-keys for more information.",
|
||||
"componentStack": Array [
|
||||
Object {
|
||||
"content": "Text",
|
||||
"fileName": "ReactWarningFixtures.js",
|
||||
"location": Object {
|
||||
"column": -1,
|
||||
"row": 20,
|
||||
},
|
||||
},
|
||||
],
|
||||
"level": "warn",
|
||||
"message": Object {
|
||||
"content": "Warning: Each child in a list should have a unique \\"key\\" prop. See https://fb.me/react-warning-keys for more information.",
|
||||
"substitutions": Array [
|
||||
Object {
|
||||
"length": 0,
|
||||
"offset": 62,
|
||||
},
|
||||
Object {
|
||||
"length": 0,
|
||||
"offset": 62,
|
||||
},
|
||||
],
|
||||
},
|
||||
},
|
||||
]
|
||||
`;
|
||||
|
||||
exports[`LogBox integrates with React and handles a key error in LogBox: Log passed to console error 1`] = `
|
||||
Array [
|
||||
"Warning: Each child in a list should have a unique \\"key\\" prop. See https://fb.me/react-warning-keys for more information.
|
||||
in Text (at ReactWarningFixtures.js:20)",
|
||||
]
|
||||
`;
|
||||
|
||||
exports[`LogBox integrates with React and handles a key error in LogBox: Log sent from React 1`] = `
|
||||
Array [
|
||||
"Warning: Each child in a list should have a unique \\"key\\" prop.%s%s See https://fb.me/react-warning-keys for more information.%s",
|
||||
"",
|
||||
"",
|
||||
"
|
||||
in Text (at ReactWarningFixtures.js:20)",
|
||||
]
|
||||
`;
|
||||
@@ -1 +1 @@
|
||||
a437f3ff302dc92347d812d518c9a9659d9aa546
|
||||
b5c6dd2de557428974855b5aa88bf9c6595beb2b
|
||||
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@@ -212,6 +212,7 @@ export type ReactFaricEvent = {
|
||||
...
|
||||
};
|
||||
|
||||
//
|
||||
// Imperative LayoutAnimation API types
|
||||
//
|
||||
export type LayoutAnimationType =
|
||||
|
||||
+4
-4
@@ -82,7 +82,7 @@
|
||||
"test-ios": "./scripts/objc-test.sh test"
|
||||
},
|
||||
"peerDependencies": {
|
||||
"react": "16.13.1"
|
||||
"react": "0.0.0-experimental-aae83a4b9"
|
||||
},
|
||||
"dependencies": {
|
||||
"@react-native-community/cli": "^4.10.0",
|
||||
@@ -111,7 +111,7 @@
|
||||
"react-devtools-core": "^4.6.0",
|
||||
"react-refresh": "^0.4.0",
|
||||
"regenerator-runtime": "^0.13.2",
|
||||
"scheduler": "0.19.1",
|
||||
"scheduler": "0.0.0-experimental-aae83a4b9",
|
||||
"stacktrace-parser": "^0.1.3",
|
||||
"use-subscription": "^1.0.0",
|
||||
"whatwg-fetch": "^3.0.0"
|
||||
@@ -147,9 +147,9 @@
|
||||
"jscodeshift": "^0.9.0",
|
||||
"mkdirp": "^0.5.1",
|
||||
"prettier": "1.19.1",
|
||||
"react": "16.13.1",
|
||||
"react-test-renderer": "16.13.1",
|
||||
"react": "0.0.0-experimental-aae83a4b9",
|
||||
"react-shallow-renderer": "16.13.1",
|
||||
"react-test-renderer": "0.0.0-experimental-aae83a4b9",
|
||||
"shelljs": "^0.7.8",
|
||||
"signedsource": "^1.0.0",
|
||||
"ws": "^6.1.4",
|
||||
|
||||
@@ -10,7 +10,7 @@
|
||||
"lint": "eslint ."
|
||||
},
|
||||
"dependencies": {
|
||||
"react": "16.13.1",
|
||||
"react": "0.0.0-experimental-aae83a4b9",
|
||||
"react-native": "1000.0.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
@@ -21,7 +21,7 @@
|
||||
"eslint": "^6.5.1",
|
||||
"jest": "^25.1.0",
|
||||
"metro-react-native-babel-preset": "^0.61.0",
|
||||
"react-test-renderer": "16.13.1"
|
||||
"react-test-renderer": "0.0.0-experimental-aae83a4b9 "
|
||||
},
|
||||
"jest": {
|
||||
"preset": "react-native"
|
||||
|
||||
@@ -6217,6 +6217,11 @@ react-devtools-core@^4.6.0:
|
||||
shell-quote "^1.6.1"
|
||||
ws "^7"
|
||||
|
||||
react-is@0.0.0-experimental-aae83a4b9:
|
||||
version "0.0.0-experimental-aae83a4b9"
|
||||
resolved "https://registry.yarnpkg.com/react-is/-/react-is-0.0.0-experimental-aae83a4b9.tgz#9dde6f4ac1da013398bf990706af2d4f59774d2b"
|
||||
integrity sha512-0AZ4lHKqoXzYZ5RhNtj7ODYhQ6fXLDRn9lRapoVxYd2rgfe6LLrrf7ob5lweuo/krb7heBGINZ479FdQIvNLfg==
|
||||
|
||||
react-is@^16.12.0:
|
||||
version "16.12.0"
|
||||
resolved "https://registry.yarnpkg.com/react-is/-/react-is-16.12.0.tgz#2cc0fe0fba742d97fd527c42a13bec4eeb06241c"
|
||||
@@ -6227,17 +6232,12 @@ react-is@^16.8.1, react-is@^16.8.4:
|
||||
resolved "https://registry.yarnpkg.com/react-is/-/react-is-16.8.4.tgz#90f336a68c3a29a096a3d648ab80e87ec61482a2"
|
||||
integrity sha512-PVadd+WaUDOAciICm/J1waJaSvgq+4rHE/K70j0PFqKhkTBsPv/82UGQJNXAngz1fOQLLxI6z1sEDmJDQhCTAA==
|
||||
|
||||
react-is@^16.8.6:
|
||||
version "16.13.1"
|
||||
resolved "https://registry.yarnpkg.com/react-is/-/react-is-16.13.1.tgz#789729a4dc36de2999dc156dd6c1d9c18cea56a4"
|
||||
integrity sha512-24e6ynE2H+OKt4kqsOvNd8kBpV65zoxbA4BVsEOB3ARVWQki/DHzaUoC5KuON/BiccDaCCTZBuOcfZs70kR8bQ==
|
||||
|
||||
react-refresh@^0.4.0:
|
||||
version "0.4.0"
|
||||
resolved "https://registry.yarnpkg.com/react-refresh/-/react-refresh-0.4.0.tgz#d421f9bd65e0e4b9822a399f14ac56bda9c92292"
|
||||
integrity sha512-bacjSio8GOtzNZKZZM6EWqbhlbb6pr28JWJWFTLwEBKvPIBRo6/Ob68D2EWZA2VyTdQxAh+TRnCYOPNKsQiXTA==
|
||||
|
||||
react-shallow-renderer@16.13.1:
|
||||
react-shallow-renderer@16.13.1, react-shallow-renderer@^16.13.1:
|
||||
version "16.13.1"
|
||||
resolved "https://registry.yarnpkg.com/react-shallow-renderer/-/react-shallow-renderer-16.13.1.tgz#4cfd6dc0f05a8d4d261ff7a80e9b88f15491a00a"
|
||||
integrity sha512-hLmExm5/ZnjodLgm/4oxYw4i7fL6LLPhbO9mF/4tmaZUurtLrp2aSeDHZmRk0SVCHXPz0VaEbb3Dqi5J7odz7Q==
|
||||
@@ -6245,24 +6245,23 @@ react-shallow-renderer@16.13.1:
|
||||
object-assign "^4.1.1"
|
||||
react-is "^16.12.0"
|
||||
|
||||
react-test-renderer@16.13.1:
|
||||
version "16.13.1"
|
||||
resolved "https://registry.yarnpkg.com/react-test-renderer/-/react-test-renderer-16.13.1.tgz#de25ea358d9012606de51e012d9742e7f0deabc1"
|
||||
integrity sha512-Sn2VRyOK2YJJldOqoh8Tn/lWQ+ZiKhyZTPtaO0Q6yNj+QDbmRkVFap6pZPy3YQk8DScRDfyqm/KxKYP9gCMRiQ==
|
||||
react-test-renderer@0.0.0-experimental-aae83a4b9:
|
||||
version "0.0.0-experimental-aae83a4b9"
|
||||
resolved "https://registry.yarnpkg.com/react-test-renderer/-/react-test-renderer-0.0.0-experimental-aae83a4b9.tgz#494dc7b72fe7ab6d469cd43032e686aa15f767f8"
|
||||
integrity sha512-Wbj7W/YQhJZpC5FbJmOgtEUNIFKfXmWvAHlJn9wc636pUHTMDYs/180qJlUwtrfW2WLb1xEpPKZQ9RnfT7gVxg==
|
||||
dependencies:
|
||||
object-assign "^4.1.1"
|
||||
prop-types "^15.6.2"
|
||||
react-is "^16.8.6"
|
||||
scheduler "^0.19.1"
|
||||
react-is "0.0.0-experimental-aae83a4b9"
|
||||
react-shallow-renderer "^16.13.1"
|
||||
scheduler "0.0.0-experimental-aae83a4b9"
|
||||
|
||||
react@16.13.1:
|
||||
version "16.13.1"
|
||||
resolved "https://registry.yarnpkg.com/react/-/react-16.13.1.tgz#2e818822f1a9743122c063d6410d85c1e3afe48e"
|
||||
integrity sha512-YMZQQq32xHLX0bz5Mnibv1/LHb3Sqzngu7xstSM+vrkE5Kzr9xE0yMByK5kMoTK30YVJE61WfbxIFFvfeDKT1w==
|
||||
react@0.0.0-experimental-aae83a4b9:
|
||||
version "0.0.0-experimental-aae83a4b9"
|
||||
resolved "https://registry.yarnpkg.com/react/-/react-0.0.0-experimental-aae83a4b9.tgz#9b2063ddb2dc9a3d347e7a0a4233462c78800ba0"
|
||||
integrity sha512-PuabEUXkXk9E4FrB3FoHY6GwvkqBpN7Od2V91TQgwJcgfErMIXQQm1n9GxzQBJ/RfgkTBCoaV4zEC/B8cNJWjw==
|
||||
dependencies:
|
||||
loose-envify "^1.1.0"
|
||||
object-assign "^4.1.1"
|
||||
prop-types "^15.6.2"
|
||||
|
||||
read-pkg-up@^7.0.1:
|
||||
version "7.0.1"
|
||||
@@ -6679,10 +6678,10 @@ saxes@^5.0.0:
|
||||
dependencies:
|
||||
xmlchars "^2.2.0"
|
||||
|
||||
scheduler@0.19.1, scheduler@^0.19.1:
|
||||
version "0.19.1"
|
||||
resolved "https://registry.yarnpkg.com/scheduler/-/scheduler-0.19.1.tgz#4f3e2ed2c1a7d65681f4c854fa8c5a1ccb40f196"
|
||||
integrity sha512-n/zwRWRYSUj0/3g/otKDRPMh6qv2SYMWNq85IEa8iZyAv8od9zDYpGSnpBEjNgcMNq6Scbu5KfIPxNF72R/2EA==
|
||||
scheduler@0.0.0-experimental-aae83a4b9:
|
||||
version "0.0.0-experimental-aae83a4b9"
|
||||
resolved "https://registry.yarnpkg.com/scheduler/-/scheduler-0.0.0-experimental-aae83a4b9.tgz#da2d706425a55ff1538d26f634171bc333a38b3b"
|
||||
integrity sha512-z0Z0TqehF/6dZbOtRcdvJBX5qUWhNs4sLddxe8VtCThTnBhK+vv5Hv6R/LP5UcE+ROk8988uTYlQExzofI7yZA==
|
||||
dependencies:
|
||||
loose-envify "^1.1.0"
|
||||
object-assign "^4.1.1"
|
||||
|
||||
Reference in New Issue
Block a user