mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
Presuppress xplat and upgrade to 0.178.1
Summary: This diff upgrades xplat to 0.178.1 and pre-suppresses errors from turning on constrained writes. To generate this diff I: * Modified every `env_mode=constrain_writes` to `env_mode=ssa` and made a commit (this is so our upgrade script will work) * Ran scripts/flow/upgrade.sh 0.178.1 to upgrade all the flowconfigs to 178.1 and suppress new-env errors * Modified arvr/js/flowconfig.ejs to use 0.178.1 and ran `scripts/gen-flowconfig/gen-flowconfig --project arvr` * Modified xplat/js/flowconfig.ejs to use 0.178.1 and ran `scripts/gen-flowconfig/gen-flowconfig --project xplat` * Unstacked from the commit in point 1 Reviewed By: SamChou19815 Differential Revision: D36676019 fbshipit-source-id: c3032f18ed838afc327f00de563e7f20713bdc26
This commit is contained in:
1 parent
eb7cc85a91
commit
6064fd0600
13 files changed
+19
-9
No files matched your search
+1
-1
@@ -73,4 +73,4 @@ untyped-import
|
||||
untyped-type-import
|
||||
|
||||
[version]
|
||||
^0.178.0
|
||||
^0.178.1
|
||||
+1
-1
@@ -73,4 +73,4 @@ untyped-import
|
||||
untyped-type-import
|
||||
|
||||
[version]
|
||||
^0.178.0
|
||||
^0.178.1
|
||||
@@ -82,6 +82,7 @@ export default function useAnimatedProps<TProps: {...}, TInstance>(
|
||||
scheduleUpdate();
|
||||
} else if (!node.__isNative) {
|
||||
// $FlowIgnore[not-a-function] - Assume it's still a function.
|
||||
// $FlowFixMe[incompatible-use]
|
||||
instance.setNativeProps(node.__getAnimatedValue());
|
||||
} else {
|
||||
throw new Error(
|
||||
|
||||
@@ -1269,6 +1269,7 @@ class VirtualizedList extends React.PureComponent<Props, State> {
|
||||
refreshControl={
|
||||
props.refreshControl == null ? (
|
||||
<RefreshControl
|
||||
// $FlowFixMe[incompatible-type]
|
||||
refreshing={props.refreshing}
|
||||
onRefresh={onRefresh}
|
||||
progressViewOffset={props.progressViewOffset}
|
||||
|
||||
@@ -32,15 +32,18 @@ function LogBoxInspectorCodeFrame(props: Props): React.Node {
|
||||
}
|
||||
|
||||
function getFileName() {
|
||||
// $FlowFixMe[incompatible-use]
|
||||
const matches = /[^/]*$/.exec(codeFrame.fileName);
|
||||
if (matches && matches.length > 0) {
|
||||
return matches[0];
|
||||
}
|
||||
|
||||
// $FlowFixMe[incompatible-use]
|
||||
return codeFrame.fileName;
|
||||
}
|
||||
|
||||
function getLocation() {
|
||||
// $FlowFixMe[incompatible-use]
|
||||
const location = codeFrame.location;
|
||||
if (location != null) {
|
||||
return ` (${location.row}:${
|
||||
|
||||
@@ -61,6 +61,7 @@ class PureComponentDebug<
|
||||
}
|
||||
}
|
||||
for (const key in this.state) {
|
||||
// $FlowFixMe[incompatible-use]
|
||||
if (this.state[key] !== (nextState || {})[key]) {
|
||||
ret = true;
|
||||
console.warn('PureComponentDebug: different state values', tag, key);
|
||||
|
||||
@@ -50,10 +50,12 @@ export default function splitLayoutProps(props: ?____ViewStyle_Internal): {
|
||||
case 'top':
|
||||
case 'transform':
|
||||
// $FlowFixMe[cannot-write]
|
||||
// $FlowFixMe[incompatible-use]
|
||||
outer[prop] = props[prop];
|
||||
break;
|
||||
default:
|
||||
// $FlowFixMe[cannot-write]
|
||||
// $FlowFixMe[incompatible-use]
|
||||
inner[prop] = props[prop];
|
||||
break;
|
||||
}
|
||||
|
||||
+1
-1
@@ -138,7 +138,7 @@
|
||||
"ws": "^6.1.4"
|
||||
},
|
||||
"devDependencies": {
|
||||
"flow-bin": "^0.178.0",
|
||||
"flow-bin": "^0.178.1",
|
||||
"react": "18.0.0",
|
||||
"react-test-renderer": "^18.0.0"
|
||||
},
|
||||
|
||||
@@ -21,6 +21,7 @@ class AnExTilt extends React.Component<Object, any> {
|
||||
opacity: new Animated.Value(1),
|
||||
burns: new Animated.Value(1.15),
|
||||
};
|
||||
// $FlowFixMe[prop-missing]
|
||||
this.state.tiltPanResponder = PanResponder.create({
|
||||
onStartShouldSetPanResponder: () => true,
|
||||
onPanResponderGrant: () => {
|
||||
|
||||
@@ -48,6 +48,7 @@ class XHRExampleFetch extends React.Component<any, any> {
|
||||
const keys = Object.keys(this.responseHeaders.map);
|
||||
for (let i = 0; i < keys.length; i++) {
|
||||
const key = keys[i];
|
||||
// $FlowFixMe[incompatible-use]
|
||||
const value = this.responseHeaders.get(key);
|
||||
responseHeaders.push(
|
||||
<Text>
|
||||
|
||||
@@ -34,7 +34,7 @@
|
||||
"eslint-plugin-react-hooks": "^4.2.0",
|
||||
"eslint-plugin-react-native": "^3.11.0",
|
||||
"eslint-plugin-relay": "^1.8.2",
|
||||
"flow-bin": "^0.178.0",
|
||||
"flow-bin": "^0.178.1",
|
||||
"inquirer": "^7.1.0",
|
||||
"jest": "^26.6.3",
|
||||
"jest-junit": "^10.0.0",
|
||||
|
||||
@@ -63,4 +63,4 @@ untyped-import
|
||||
untyped-type-import
|
||||
|
||||
[version]
|
||||
^0.178.0
|
||||
^0.178.1
|
||||
@@ -3226,10 +3226,10 @@ flatted@^3.1.0:
|
||||
resolved "https://registry.yarnpkg.com/flatted/-/flatted-3.2.2.tgz#64bfed5cb68fe3ca78b3eb214ad97b63bedce561"
|
||||
integrity sha512-JaTY/wtrcSyvXJl4IMFHPKyFur1sE9AUqc0QnhOaJ0CxHtAoIV8pYDzeEfAaNEtGkOfq4gr3LBFmdXW5mOQFnA==
|
||||
|
||||
flow-bin@^0.178.0:
|
||||
version "0.178.0"
|
||||
resolved "https://registry.yarnpkg.com/flow-bin/-/flow-bin-0.178.0.tgz#893f32bbb2bea09a5cf53446d99d4c791b2220b2"
|
||||
integrity sha512-D1S8c/oaiHAeKaxNxdJJ6SxjxwetNRgPWc9PI1wCSNfB3o0gAJKE5ic2B84c2QmRcs6dMYw6b9GDelYpWsArfg==
|
||||
flow-bin@^0.178.1:
|
||||
version "0.178.1"
|
||||
resolved "https://registry.yarnpkg.com/flow-bin/-/flow-bin-0.178.1.tgz#c0ce2f50080d00b29018c6f044b1d2edac9a9e2d"
|
||||
integrity sha512-B6vFVkAoilnRTAwhGiVCPb777cVjIW9VwbLJTTg2vRbXjLgYIZJMmU0mit7ZSsvoOucT5WBwrrC8M0wkRoeSZA==
|
||||
|
||||
flow-parser@0.*:
|
||||
version "0.163.0"
|
||||
|
||||
Reference in new issue
Block a user