Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Integrate RN Nightly Build 2/27/22 #9672

Merged
merged 12 commits into from
Mar 16, 2022
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"type": "prerelease",
"comment": "integrates 2/27/22",
"packageName": "@office-iss/react-native-win32",
"email": "email not defined",
"dependentChangeType": "patch"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"type": "patch",
"comment": "integrates 2/27/22",
"packageName": "@react-native-windows/automation-channel",
"email": "email not defined",
"dependentChangeType": "patch"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"type": "prerelease",
"comment": "integrates 2/27/22",
"packageName": "@react-native-windows/virtualized-list",
"email": "email not defined",
"dependentChangeType": "patch"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"type": "prerelease",
"comment": "integrates 2/27/22",
"packageName": "react-native-windows",
"email": "email not defined",
"dependentChangeType": "patch"
}
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"excludePatterns": [
"src/js/examples-win32/**"
],
"baseVersion": "0.0.0-20220213-2008-7cece3423",
"baseVersion": "0.0.0-20220227-2009-189c2c895",
"overrides": [
{
"type": "patch",
Expand Down
4 changes: 2 additions & 2 deletions packages/@office-iss/react-native-win32-tester/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
"peerDependencies": {
"@office-iss/react-native-win32": "^0.0.0-canary.137",
"react": "17.0.2",
"react-native": "0.0.0-20220213-2008-7cece3423"
"react-native": "0.0.0-20220227-2009-189c2c895"
},
"devDependencies": {
"@office-iss/react-native-win32": "^0.0.0-canary.137",
Expand All @@ -26,7 +26,7 @@
"@types/node": "^14.14.22",
"eslint": "^7.32.0",
"just-scripts": "^1.3.3",
"react-native": "0.0.0-20220213-2008-7cece3423",
"react-native": "0.0.0-20220227-2009-189c2c895",
"react-native-platform-override": "^1.6.6",
"typescript": "^4.4.4"
},
Expand Down
2 changes: 2 additions & 0 deletions packages/@office-iss/react-native-win32/.flowconfig
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,8 @@
; Ignore files with flow typing issues #9223
.*/react-native-win32/Libraries/Core/ReactNativeVersionCheck.js

.*/node_modules/resolve/test/resolver/malformed_package_json/package\.json$

[untyped]
.*/node_modules/@react-native-community/cli/.*/.*
; Should work out how to do this properly
Expand Down
17 changes: 5 additions & 12 deletions packages/@office-iss/react-native-win32/overrides.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,19 +7,19 @@
"**/__snapshots__/**",
"src/rntypes/**"
],
"baseVersion": "0.0.0-20220213-2008-7cece3423",
"baseVersion": "0.0.0-20220227-2009-189c2c895",
"overrides": [
{
"type": "derived",
"file": ".flowconfig",
"baseFile": ".flowconfig",
"baseHash": "e0fd826d1c731209ca1f4322e950df83877ea95a"
"baseHash": "62cbbd198b5f952592fcffae5e5f88a387a2f190"
},
{
"type": "derived",
"file": "src/index.win32.js",
"baseFile": "index.js",
"baseHash": "a33f356abc2db3767c8fee7e4d6bda60384787a1"
"baseHash": "2a0bd511c691be2ac3da45a3c77250aaf55414e1"
},
{
"type": "patch",
Expand Down Expand Up @@ -100,13 +100,6 @@
"baseFile": "Libraries/Components/SafeAreaView/SafeAreaView.js",
"baseHash": "d13d67c91a9096989776ba7d7b0f8537c46b87a8"
},
{
"type": "copy",
"file": "src/Libraries/Components/SegmentedControlIOS/SegmentedControlIOS.js",
"baseFile": "Libraries/Components/SegmentedControlIOS/SegmentedControlIOS.android.js",
"baseHash": "a7b7561ee80510fb3a45bad5ad18bc9076152144",
"issue": 4378
},
{
"type": "platform",
"file": "src/Libraries/Components/Text/Tests/TextWin32Test.tsx"
Expand All @@ -131,7 +124,7 @@
"type": "derived",
"file": "src/Libraries/Components/TextInput/TextInput.win32.tsx",
"baseFile": "Libraries/Components/TextInput/TextInput.js",
"baseHash": "c447994d5ac59824f298cf4aec899c174b78e3e2"
"baseHash": "567ebad070a2fb9020ef177ee30defba9f0c54ec"
},
{
"type": "patch",
Expand Down Expand Up @@ -443,7 +436,7 @@
"type": "patch",
"file": "src/Libraries/Types/CoreEventTypes.win32.js",
"baseFile": "Libraries/Types/CoreEventTypes.js",
"baseHash": "b7ed94c49c38a6b3579349e6940bb663328c1f4e",
"baseHash": "12d577ba5b522593fb49d4621d5ad4bba0d37119",
"issue": 6240
},
{
Expand Down
14 changes: 7 additions & 7 deletions packages/@office-iss/react-native-win32/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
"dependencies": {
"@babel/runtime": "^7.0.0",
"@jest/create-cache-key-function": "^27.0.1",
"@react-native-community/cli": "^7.0.1",
"@react-native-community/cli": "^7.0.3",
"@react-native-community/cli-platform-android": "^7.0.1",
"@react-native-community/cli-platform-ios": "^7.0.1",
"@react-native-windows/virtualized-list": "0.0.0-canary.31",
Expand All @@ -37,16 +37,16 @@
"hermes-engine": "~0.11.0",
"invariant": "^2.2.4",
"jsc-android": "^250230.2.1",
"metro-react-native-babel-transformer": "0.67.0",
"metro-runtime": "0.67.0",
"metro-source-map": "0.67.0",
"metro-react-native-babel-transformer": "0.68.0",
"metro-runtime": "0.68.0",
"metro-source-map": "0.68.0",
"nullthrows": "^1.1.1",
"pretty-format": "^26.5.2",
"promise": "^8.0.3",
"react-clone-referenced-element": "^1.0.1",
"react-devtools-core": "^4.23.0",
"react-native-codegen": "^0.0.13",
"react-native-gradle-plugin": "^0.0.4",
"react-native-gradle-plugin": "^0.0.5",
"react-refresh": "^0.4.0",
"react-shallow-renderer": "16.14.1",
"regenerator-runtime": "^0.13.2",
Expand All @@ -72,14 +72,14 @@
"just-scripts": "^1.3.3",
"prettier": "^2.4.1",
"react": "17.0.2",
"react-native": "0.0.0-20220213-2008-7cece3423",
"react-native": "0.0.0-20220227-2009-189c2c895",
"react-native-platform-override": "^1.6.6",
"react-shallow-renderer": "16.14.1",
"typescript": "^4.4.4"
},
"peerDependencies": {
"react": "17.0.2",
"react-native": "0.0.0-20220213-2008-7cece3423"
"react-native": "0.0.0-20220227-2009-189c2c895"
},
"beachball": {
"defaultNpmTag": "canary",
Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
import * as React from 'react';
import type {HostComponent} from '../Renderer/shims/ReactNativeTypes';

export type SyntheticEvent<T> = $ReadOnly<{|
export type SyntheticEvent<+T> = $ReadOnly<{|
bubbles: ?boolean,
cancelable: ?boolean,
currentTarget: number | React.ElementRef<HostComponent<mixed>>,
Expand Down
31 changes: 18 additions & 13 deletions packages/@office-iss/react-native-win32/src/index.win32.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@ import typeof RefreshControl from './Libraries/Components/RefreshControl/Refresh
import typeof SafeAreaView from './Libraries/Components/SafeAreaView/SafeAreaView';
import typeof ScrollView from './Libraries/Components/ScrollView/ScrollView';
import typeof SectionList from './Libraries/Lists/SectionList';
import typeof SegmentedControlIOS from './Libraries/Components/SegmentedControlIOS/SegmentedControlIOS';
import typeof Slider from './Libraries/Components/Slider/Slider';
import typeof StatusBar from './Libraries/Components/StatusBar/StatusBar';
import typeof Switch from './Libraries/Components/Switch/Switch';
Expand Down Expand Up @@ -197,16 +196,6 @@ module.exports = {
get SectionList(): SectionList {
return require('./Libraries/Lists/SectionList').default;
},
// $FlowFixMe[value-as-type]
get SegmentedControlIOS(): SegmentedControlIOS {
warnOnce(
'segmented-control-ios-moved',
'SegmentedControlIOS has been extracted from react-native core and will be removed in a future release. ' +
"It can now be installed and imported from '@react-native-segmented-control/segmented-control' instead of 'react-native'. " +
'See https://github.com/react-native-segmented-control/segmented-control',
);
return require('./Libraries/Components/SegmentedControlIOS/SegmentedControlIOS');
},
get Slider(): Slider {
warnOnce(
'slider-moved',
Expand Down Expand Up @@ -685,8 +674,8 @@ if (__DEV__) {
invariant(
false,
'ViewPagerAndroid has been removed from React Native. ' +
"It can now be installed and imported from '@react-native-community/viewpager' instead of 'react-native'. " +
'See https://github.com/callstack/react-native-viewpager',
"It can now be installed and imported from 'react-native-pager-view' instead of 'react-native'. " +
'See https://github.com/callstack/react-native-pager-view',
);
},
});
Expand All @@ -707,6 +696,22 @@ if (__DEV__) {
},
});

/* $FlowFixMe[prop-missing] This is intentional: Flow will error when
* attempting to access SegmentedControlIOS. */
/* $FlowFixMe[invalid-export] This is intentional: Flow will error when
* attempting to access SegmentedControlIOS. */
Object.defineProperty(module.exports, 'SegmentedControlIOS', {
configurable: true,
get() {
invariant(
false,
'SegmentedControlIOS has been removed from React Native. ' +
"It can now be installed and imported from '@react-native-community/segmented-checkbox' instead of 'react-native'." +
'See https://github.com/react-native-segmented-control/segmented-control',
);
},
});

/* $FlowFixMe[prop-missing] This is intentional: Flow will error when
* attempting to access StatusBarIOS. */
/* $FlowFixMe[invalid-export] This is intentional: Flow will error when
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
"just-scripts": "^1.3.2",
"prettier": "^2.4.1",
"react": "17.0.2",
"react-native": "0.0.0-20220213-2008-7cece3423",
"react-native": "0.0.0-20220227-2009-189c2c895",
"react-native-windows": "^0.0.0-canary.470",
"typescript": "^4.4.4"
},
Expand All @@ -40,4 +40,4 @@
"engines": {
"node": ">= 14"
}
}
}
2 changes: 1 addition & 1 deletion packages/@react-native-windows/tester/overrides.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"excludePatterns": [
"src/js/examples-win/**"
],
"baseVersion": "0.0.0-20220213-2008-7cece3423",
"baseVersion": "0.0.0-20220227-2009-189c2c895",
"overrides": [
{
"type": "patch",
Expand Down
6 changes: 3 additions & 3 deletions packages/@react-native-windows/tester/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
"peerDependencies": {
"@react-native-picker/picker": "2.2.0",
"react": "17.0.2",
"react-native": "0.0.0-20220213-2008-7cece3423",
"react-native": "0.0.0-20220227-2009-189c2c895",
"react-native-windows": "^0.0.0-canary.470",
"react-native-xaml": "^0.0.50"
},
Expand All @@ -27,12 +27,12 @@
"@types/node": "^14.14.22",
"eslint": "^7.32.0",
"just-scripts": "^1.3.3",
"react-native": "0.0.0-20220213-2008-7cece3423",
"react-native": "0.0.0-20220227-2009-189c2c895",
"react-native-platform-override": "^1.6.6",
"react-native-windows": "^0.0.0-canary.470",
"typescript": "^4.4.4"
},
"engines": {
"node": ">= 14"
}
}
}
17 changes: 17 additions & 0 deletions packages/@react-native-windows/virtualized-list/.flowconfig
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,23 @@
.*/node_modules/react-native-windows/Microsoft.ReactNative.Managed.CodeGen.UnitTests/.*
.*/node_modules/react-native-windows/Microsoft.ReactNative.Managed.UnitTests/.*

; Ignore templates for 'react-native init'
<PROJECT_ROOT>/template/.*

; Ignore the Dangerfile
<PROJECT_ROOT>/bots/dangerfile.js

; Ignore "BUCK" generated dirs
<PROJECT_ROOT>/\.buckd/

; Flow doesn't support platforms
.*/Libraries/Utilities/LoadingView.js

.*/node_modules/resolve/test/resolver/malformed_package_json/package\.json$

[untyped]
.*/node_modules/@react-native-community/cli/.*/.*

[libs]
../../../node_modules/react-native/interface.js
../../../node_modules/react-native/flow/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,13 @@
".flowconfig",
"src/**"
],
"baseVersion": "0.0.0-20220213-2008-7cece3423",
"baseVersion": "0.0.0-20220227-2009-189c2c895",
"overrides": [
{
"type": "derived",
"file": ".flowconfig",
"baseFile": ".flowconfig",
"baseHash": "e0fd826d1c731209ca1f4322e950df83877ea95a"
"baseHash": "62cbbd198b5f952592fcffae5e5f88a387a2f190"
},
{
"type": "copy",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,12 +25,12 @@
"just-scripts": "^1.3.3",
"prettier": "^2.4.1",
"react": "17.0.2",
"react-native": "0.0.0-20220213-2008-7cece3423",
"react-native": "0.0.0-20220227-2009-189c2c895",
"react-native-platform-override": "^1.6.6"
},
"peerDependencies": {
"react": "17.0.2",
"react-native": "0.0.0-20220213-2008-7cece3423"
"react-native": "0.0.0-20220227-2009-189c2c895"
},
"beachball": {
"defaultNpmTag": "canary",
Expand Down
Loading