Skip to content

Commit 817ed30

Browse files
committed
chore: bump react-native to 0.74
1 parent 1fbb7a4 commit 817ed30

File tree

92 files changed

+3203
-2821
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

92 files changed

+3203
-2821
lines changed
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
diff --git a/Libraries/Text/Text.d.ts b/Libraries/Text/Text.d.ts
2+
index db7aea477d51e1105cc5795dd5547a4ab3e052c2..ca69c7d49712449891cbe80f37c4c1ef7763668a 100644
3+
--- a/Libraries/Text/Text.d.ts
4+
+++ b/Libraries/Text/Text.d.ts
5+
@@ -16,6 +16,7 @@ import {TextStyle} from '../StyleSheet/StyleSheetTypes';
6+
import {
7+
GestureResponderEvent,
8+
LayoutChangeEvent,
9+
+ MouseEvent,
10+
NativeSyntheticEvent,
11+
TextLayoutEventData,
12+
} from '../Types/CoreEventTypes';

apps/E2E/package.json

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -23,19 +23,19 @@
2323
],
2424
"dependencies": {
2525
"react": "18.2.0",
26-
"react-native": "^0.73.0",
27-
"react-native-macos": "^0.73.0",
28-
"react-native-windows": "^0.73.0"
26+
"react-native": "^0.74.0",
27+
"react-native-macos": "patch:react-native-macos@npm%3A0.74.30#~/.yarn/patches/react-native-macos-npm-0.74.30-e4edf98920.patch",
28+
"react-native-windows": "^0.74.0"
2929
},
3030
"devDependencies": {
3131
"@babel/core": "^7.8.0",
3232
"@babel/runtime": "^7.8.0",
3333
"@fluentui-react-native/eslint-config-rules": "workspace:*",
3434
"@fluentui-react-native/focus-zone": "workspace:*",
3535
"@fluentui-react-native/scripts": "workspace:*",
36-
"@react-native/babel-preset": "^0.73.0",
37-
"@react-native/metro-babel-transformer": "^0.73.0",
38-
"@react-native/metro-config": "^0.73.0",
36+
"@react-native/babel-preset": "^0.74.0",
37+
"@react-native/metro-babel-transformer": "^0.74.0",
38+
"@react-native/metro-config": "^0.74.0",
3939
"@rnx-kit/metro-config": "^2.0.0",
4040
"@types/jasmine": "5.1.4",
4141
"@types/node": "^22.2.0",
@@ -52,7 +52,7 @@
5252
"appium-uiautomator2-driver": "^3.0.5",
5353
"appium-windows-driver": "^2.12.18",
5454
"appium-xcuitest-driver": "^7.9.1",
55-
"metro-config": "^0.80.0",
55+
"metro-config": "^0.80.3",
5656
"rimraf": "^5.0.1",
5757
"ts-node": "^10.7.0",
5858
"typescript": "4.9.4",
@@ -68,7 +68,7 @@
6868
"microsoft/react-native"
6969
],
7070
"requirements": [
71-
"react-native@0.73"
71+
"react-native@0.74"
7272
],
7373
"capabilities": [
7474
"core",

apps/fluent-tester/package.json

Lines changed: 12 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -87,12 +87,13 @@
8787
"@react-native-community/slider": "^4.2.0",
8888
"@react-native-menu/menu": "^0.7.3",
8989
"@react-native-picker/picker": "^2.7.0",
90+
"@types/react": "~18.2.0",
9091
"@warren-ms/react-native-icons": "^0.0.13",
9192
"react": "18.2.0",
92-
"react-native": "^0.73.0",
93-
"react-native-macos": "^0.73.0",
94-
"react-native-svg": "^15.0.0",
95-
"react-native-windows": "^0.73.0",
93+
"react-native": "^0.74.0",
94+
"react-native-macos": "patch:react-native-macos@npm%3A0.74.30#~/.yarn/patches/react-native-macos-npm-0.74.30-e4edf98920.patch",
95+
"react-native-svg": "^15.4.0",
96+
"react-native-windows": "^0.74.0",
9697
"tslib": "^2.3.1"
9798
},
9899
"devDependencies": {
@@ -101,24 +102,24 @@
101102
"@fluentui-react-native/eslint-config-rules": "workspace:*",
102103
"@fluentui-react-native/focus-zone": "workspace:*",
103104
"@fluentui-react-native/scripts": "workspace:*",
104-
"@react-native/babel-preset": "^0.73.0",
105-
"@react-native/metro-babel-transformer": "^0.73.0",
106-
"@react-native/metro-config": "^0.73.0",
105+
"@react-native/babel-preset": "^0.74.0",
106+
"@react-native/metro-babel-transformer": "^0.74.0",
107+
"@react-native/metro-config": "^0.74.0",
107108
"@rnx-kit/cli": "^0.18.0",
108109
"@rnx-kit/metro-config": "^2.0.0",
109110
"@types/jasmine": "5.1.4",
110111
"@wdio/cli": "^8.40.0",
111112
"@wdio/globals": "^8.40.0",
112113
"@wdio/jasmine-framework": "^8.40.0",
113114
"flow-bin": "^0.113.0",
114-
"metro-config": "^0.80.0",
115+
"metro-config": "^0.80.3",
115116
"react-native-svg-transformer": "^1.0.0",
116-
"react-native-test-app": "^3.4.7",
117+
"react-native-test-app": "^3.9.2",
117118
"react-test-renderer": "18.2.0",
118119
"webdriverio": "^8.40.0"
119120
},
120121
"peerDependencies": {
121-
"@office-iss/react-native-win32": "^0.73.0"
122+
"@office-iss/react-native-win32": "^0.74.0"
122123
},
123124
"jest": {
124125
"preset": "react-native"
@@ -177,7 +178,7 @@
177178
"@fluentui-react-native/scripts/align-deps-preset.js"
178179
],
179180
"requirements": [
180-
"react-native@0.73"
181+
"react-native@0.74"
181182
],
182183
"capabilities": [
183184
"core-android",

apps/fluent-tester/src/TestComponents/Button/E2EButtonTest.tsx

Lines changed: 25 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,9 @@
22
import * as React from 'react';
33
import { View } from 'react-native';
44

5-
import { Text } from '@fluentui/react-native';
6-
import { ButtonV1 as Button } from '@fluentui/react-native';
5+
import { ButtonV1 as Button, Text } from '@fluentui/react-native';
76
import { Stack } from '@fluentui-react-native/stack';
8-
import type { IViewWin32Props } from '@office-iss/react-native-win32';
7+
import type { IKeyboardEvent } from '@office-iss/react-native-win32';
98

109
import {
1110
BUTTON_TEST_COMPONENT,
@@ -22,6 +21,24 @@ import {
2221
import { stackStyle } from '../Common/styles';
2322
import { testProps } from '../Common/TestProps';
2423

24+
function keyEvent(key: string) {
25+
return {
26+
key,
27+
capsLockKey: false,
28+
shiftKey: false,
29+
ctrlKey: false,
30+
altKey: false,
31+
metaKey: false,
32+
numericPadKey: false,
33+
helpKey: false,
34+
functionKey: false,
35+
ArrowLeft: false,
36+
ArrowRight: false,
37+
ArrowUp: false,
38+
ArrowDown: false,
39+
};
40+
}
41+
2542
export const E2EButtonTest: React.FunctionComponent = () => {
2643
const [buttonPressed, setButtonPressed] = React.useState(false);
2744
const [keyDetected, setKeyDetected] = React.useState('');
@@ -31,16 +48,16 @@ export const E2EButtonTest: React.FunctionComponent = () => {
3148
setKeyDetected('');
3249
}, [buttonPressed]);
3350

34-
const keyPressProps: Omit<IViewWin32Props, 'accessibilityRole' | 'role' | 'onBlur' | 'onFocus' | 'onMouseLeave' | 'onMouseEnter'> = {
35-
keyDownEvents: [{ key: 'a' }],
36-
onKeyDown: (args) => {
51+
const keyPressProps = {
52+
keyDownEvents: [keyEvent('a')],
53+
onKeyDown: (args: IKeyboardEvent) => {
3754
if (args.nativeEvent.key === 'a') {
3855
setKeyDetected('a (down)');
3956
args.stopPropagation();
4057
}
4158
},
42-
keyUpEvents: [{ key: 'b' }],
43-
onKeyUp: (args) => {
59+
keyUpEvents: [keyEvent('b')],
60+
onKeyUp: (args: IKeyboardEvent) => {
4461
if (args.nativeEvent.key === 'b') {
4562
setKeyDetected('b (up)');
4663
args.stopPropagation();

apps/win32/package.json

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -32,23 +32,23 @@
3232
"dependencies": {
3333
"@fluentui-react-native/tester": "workspace:*",
3434
"react": "18.2.0",
35-
"react-native": "^0.73.0",
36-
"react-native-svg": "^15.0.0",
35+
"react-native": "^0.74.0",
36+
"react-native-svg": "^15.4.0",
3737
"tslib": "^2.3.1"
3838
},
3939
"devDependencies": {
4040
"@babel/core": "^7.20.0",
4141
"@fluentui-react-native/eslint-config-rules": "workspace:*",
4242
"@fluentui-react-native/scripts": "workspace:*",
43-
"@office-iss/react-native-win32": "^0.73.0",
43+
"@office-iss/react-native-win32": "^0.74.0",
4444
"@office-iss/rex-win32": "0.73.11-devmain.16.0.17615.15030",
45-
"@react-native/babel-preset": "^0.73.0",
46-
"@react-native/metro-babel-transformer": "^0.73.0",
47-
"@react-native/metro-config": "^0.73.0",
45+
"@react-native/babel-preset": "^0.74.0",
46+
"@react-native/metro-babel-transformer": "^0.74.0",
47+
"@react-native/metro-config": "^0.74.0",
4848
"@rnx-kit/cli": "^0.18.0",
4949
"@rnx-kit/metro-config": "^2.0.0",
5050
"@types/react": "^18.2.0",
51-
"metro-config": "^0.80.0",
51+
"metro-config": "^0.80.3",
5252
"react-native-svg-transformer": "^1.0.0",
5353
"react-test-renderer": "18.2.0",
5454
"rimraf": "^5.0.1",
@@ -92,7 +92,7 @@
9292
"microsoft/react-native"
9393
],
9494
"requirements": [
95-
"react-native@0.73"
95+
"react-native@0.74"
9696
],
9797
"capabilities": [
9898
"babel-preset-react-native",
@@ -105,7 +105,7 @@
105105
}
106106
},
107107
"peerDependencies": {
108-
"@office-iss/react-native-win32": "^0.73.0"
108+
"@office-iss/react-native-win32": "^0.74.0"
109109
},
110110
"peerDependenciesMeta": {
111111
"@office-iss/react-native-win32": {

package.json

Lines changed: 9 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
"change": "beachball change",
2424
"check-for-changed-files": "cd scripts && yarn fluentui-scripts checkForModifiedFiles",
2525
"checkchange": "beachball check --changehint \"Run 'yarn change' to generate a change file\"",
26-
"align-deps": "rnx-align-deps --requirements react-native@0.73",
26+
"align-deps": "rnx-align-deps --requirements react-native@0.74",
2727
"depcheck": "yarn align-deps && lage depcheck",
2828
"lint": "lage lint",
2929
"preinstall": "node ./scripts/use-yarn-please.js",
@@ -39,9 +39,9 @@
3939
"@babel/preset-env": "^7.8.0",
4040
"@babel/preset-react": "^7.8.0",
4141
"@babel/preset-typescript": "^7.8.0",
42-
"@react-native/babel-preset": "^0.73.0",
43-
"@react-native/metro-babel-transformer": "^0.73.0",
44-
"@react-native/metro-config": "^0.73.0",
42+
"@react-native/babel-preset": "^0.74.0",
43+
"@react-native/metro-babel-transformer": "^0.74.0",
44+
"@react-native/metro-config": "^0.74.0",
4545
"@rnx-kit/align-deps": "^3.0.0",
4646
"babel-jest": "^29.7.0",
4747
"beachball": "^2.20.0",
@@ -51,29 +51,25 @@
5151
"markdown-link-check": "^3.8.7",
5252
"react": "18.2.0",
5353
"react-dom": "^18.2.0",
54-
"react-native": "^0.73.0"
54+
"react-native": "^0.74.0"
5555
},
5656
"peerDependencies": {
5757
"react": "18.2.0",
5858
"react-dom": "^18.2.0",
59-
"react-native": "^0.73.0"
59+
"react-native": "^0.74.0"
6060
},
6161
"workspaces": [
6262
"apps/*",
6363
"packages/**",
6464
"scripts"
6565
],
6666
"resolutions": {
67-
"axios": "^1.8.2",
68-
"es5-ext": "0.10.63",
69-
"express": "^4.19.2",
7067
"@types/react": "^18.2.0",
71-
"micromatch": "^4.0.0",
72-
"react-native-svg": "^15.0.0",
68+
"@warren-ms/react-native-icons/react-native-svg": "^15.4.0",
69+
"axios": "^1.8.2",
7370
"semver": "^7.5.2",
7471
"tar-fs": "^3.0.8",
7572
"ws": "^8.17.1",
76-
"xml2js": "^0.5.0",
7773
"yaml": "^2.2.2"
7874
},
7975
"rnx-kit": {
@@ -83,7 +79,7 @@
8379
"microsoft/react-native"
8480
],
8581
"requirements": [
86-
"react-native@0.73"
82+
"react-native@0.74"
8783
],
8884
"capabilities": [
8985
"babel-preset-react-native",

packages/components/Avatar/package.json

Lines changed: 12 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -42,20 +42,21 @@
4242
"@babel/core": "^7.20.0",
4343
"@fluentui-react-native/eslint-config-rules": "workspace:*",
4444
"@fluentui-react-native/scripts": "workspace:*",
45-
"@office-iss/react-native-win32": "^0.73.0",
46-
"@react-native/babel-preset": "^0.73.0",
47-
"@react-native/metro-config": "^0.73.0",
45+
"@office-iss/react-native-win32": "^0.74.0",
46+
"@react-native/babel-preset": "^0.74.0",
47+
"@react-native/metro-config": "^0.74.0",
48+
"@types/react": "~18.2.0",
4849
"react": "18.2.0",
49-
"react-native": "^0.73.0",
50-
"react-native-svg": "^14.0.0"
50+
"react-native": "^0.74.0",
51+
"react-native-svg": "^15.4.0"
5152
},
5253
"peerDependencies": {
53-
"@office-iss/react-native-win32": "^0.73.0",
54+
"@office-iss/react-native-win32": "^0.74.0",
5455
"react": "18.2.0",
55-
"react-native": "^0.73.0",
56-
"react-native-macos": "^0.73.0",
57-
"react-native-svg": "^15.0.0",
58-
"react-native-windows": "^0.73.0"
56+
"react-native": "^0.74.0",
57+
"react-native-macos": "^0.74.0",
58+
"react-native-svg": "^15.4.0",
59+
"react-native-windows": "^0.74.0"
5960
},
6061
"rnx-kit": {
6162
"kitType": "library",
@@ -64,7 +65,7 @@
6465
"microsoft/react-native"
6566
],
6667
"requirements": [
67-
"react-native@0.73"
68+
"react-native@0.74"
6869
],
6970
"capabilities": [
7071
"core",

packages/components/Badge/package.json

Lines changed: 12 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -40,20 +40,21 @@
4040
"@fluentui-react-native/eslint-config-rules": "workspace:*",
4141
"@fluentui-react-native/scripts": "workspace:*",
4242
"@fluentui-react-native/test-tools": "workspace:*",
43-
"@office-iss/react-native-win32": "^0.73.0",
44-
"@react-native/babel-preset": "^0.73.0",
45-
"@react-native/metro-config": "^0.73.0",
43+
"@office-iss/react-native-win32": "^0.74.0",
44+
"@react-native/babel-preset": "^0.74.0",
45+
"@react-native/metro-config": "^0.74.0",
46+
"@types/react": "~18.2.0",
4647
"react": "18.2.0",
47-
"react-native": "^0.73.0",
48-
"react-native-svg": "^14.0.0"
48+
"react-native": "^0.74.0",
49+
"react-native-svg": "^15.4.0"
4950
},
5051
"peerDependencies": {
51-
"@office-iss/react-native-win32": "^0.73.0",
52+
"@office-iss/react-native-win32": "^0.74.0",
5253
"react": "18.2.0",
53-
"react-native": "^0.73.0",
54-
"react-native-macos": "^0.73.0",
55-
"react-native-svg": "^15.0.0",
56-
"react-native-windows": "^0.73.0"
54+
"react-native": "^0.74.0",
55+
"react-native-macos": "^0.74.0",
56+
"react-native-svg": "^15.4.0",
57+
"react-native-windows": "^0.74.0"
5758
},
5859
"sideEffects": false,
5960
"rnx-kit": {
@@ -63,7 +64,7 @@
6364
"microsoft/react-native"
6465
],
6566
"requirements": [
66-
"react-native@0.73"
67+
"react-native@0.74"
6768
],
6869
"capabilities": [
6970
"core",

0 commit comments

Comments
 (0)