diff --git a/change/@office-iss-react-native-win32-5e01cc9c-ddbe-4c53-b1cc-f1a0bdac4ff5.json b/change/@office-iss-react-native-win32-5e01cc9c-ddbe-4c53-b1cc-f1a0bdac4ff5.json new file mode 100644 index 00000000000..216b7708422 --- /dev/null +++ b/change/@office-iss-react-native-win32-5e01cc9c-ddbe-4c53-b1cc-f1a0bdac4ff5.json @@ -0,0 +1,7 @@ +{ + "type": "prerelease", + "comment": "Integrate 0.84.0-nightly-20251212-dd390dbbe", + "packageName": "@office-iss/react-native-win32", + "email": "66076509+vineethkuttan@users.noreply.github.com", + "dependentChangeType": "patch" +} diff --git a/change/@react-native-windows-automation-29636134-b148-4151-9b6a-02df04811bdc.json b/change/@react-native-windows-automation-29636134-b148-4151-9b6a-02df04811bdc.json new file mode 100644 index 00000000000..2b4a5d09adc --- /dev/null +++ b/change/@react-native-windows-automation-29636134-b148-4151-9b6a-02df04811bdc.json @@ -0,0 +1,7 @@ +{ + "type": "prerelease", + "comment": "Integrate 0.84.0-nightly-20251212-dd390dbbe", + "packageName": "@react-native-windows/automation", + "email": "66076509+vineethkuttan@users.noreply.github.com", + "dependentChangeType": "patch" +} diff --git a/change/@react-native-windows-automation-channel-422d4c62-1e0d-461f-ba66-d5ba84f1b9af.json b/change/@react-native-windows-automation-channel-422d4c62-1e0d-461f-ba66-d5ba84f1b9af.json new file mode 100644 index 00000000000..9bc0f256c6a --- /dev/null +++ b/change/@react-native-windows-automation-channel-422d4c62-1e0d-461f-ba66-d5ba84f1b9af.json @@ -0,0 +1,7 @@ +{ + "type": "prerelease", + "comment": "Integrate 0.84.0-nightly-20251212-dd390dbbe", + "packageName": "@react-native-windows/automation-channel", + "email": "66076509+vineethkuttan@users.noreply.github.com", + "dependentChangeType": "patch" +} diff --git a/change/@react-native-windows-automation-commands-72b29ff7-cadd-448f-898e-a32af64968b9.json b/change/@react-native-windows-automation-commands-72b29ff7-cadd-448f-898e-a32af64968b9.json new file mode 100644 index 00000000000..8a9ecae7a00 --- /dev/null +++ b/change/@react-native-windows-automation-commands-72b29ff7-cadd-448f-898e-a32af64968b9.json @@ -0,0 +1,7 @@ +{ + "type": "prerelease", + "comment": "Integrate 0.84.0-nightly-20251212-dd390dbbe", + "packageName": "@react-native-windows/automation-commands", + "email": "66076509+vineethkuttan@users.noreply.github.com", + "dependentChangeType": "patch" +} diff --git a/change/@react-native-windows-cli-0795a537-8e99-4888-8d24-cd6a261a24cd.json b/change/@react-native-windows-cli-0795a537-8e99-4888-8d24-cd6a261a24cd.json new file mode 100644 index 00000000000..7d3e2252b77 --- /dev/null +++ b/change/@react-native-windows-cli-0795a537-8e99-4888-8d24-cd6a261a24cd.json @@ -0,0 +1,7 @@ +{ + "type": "prerelease", + "comment": "Integrate 0.84.0-nightly-20251212-dd390dbbe", + "packageName": "@react-native-windows/cli", + "email": "66076509+vineethkuttan@users.noreply.github.com", + "dependentChangeType": "patch" +} diff --git a/change/@react-native-windows-codegen-8f8cae0d-6365-4803-895a-3db0aaec8e3b.json b/change/@react-native-windows-codegen-8f8cae0d-6365-4803-895a-3db0aaec8e3b.json new file mode 100644 index 00000000000..18bb1e84216 --- /dev/null +++ b/change/@react-native-windows-codegen-8f8cae0d-6365-4803-895a-3db0aaec8e3b.json @@ -0,0 +1,7 @@ +{ + "type": "prerelease", + "comment": "Integrate 0.84.0-nightly-20251212-dd390dbbe", + "packageName": "@react-native-windows/codegen", + "email": "66076509+vineethkuttan@users.noreply.github.com", + "dependentChangeType": "patch" +} diff --git a/change/@react-native-windows-find-repo-root-32d9d9bf-9d3e-4d21-bb1e-c42aa555dcb2.json b/change/@react-native-windows-find-repo-root-32d9d9bf-9d3e-4d21-bb1e-c42aa555dcb2.json new file mode 100644 index 00000000000..ddadb896a63 --- /dev/null +++ b/change/@react-native-windows-find-repo-root-32d9d9bf-9d3e-4d21-bb1e-c42aa555dcb2.json @@ -0,0 +1,7 @@ +{ + "type": "prerelease", + "comment": "Integrate 0.84.0-nightly-20251212-dd390dbbe", + "packageName": "@react-native-windows/find-repo-root", + "email": "66076509+vineethkuttan@users.noreply.github.com", + "dependentChangeType": "patch" +} diff --git a/change/@react-native-windows-fs-0a613149-b0a6-4c8b-a267-4633c1e5bbfd.json b/change/@react-native-windows-fs-0a613149-b0a6-4c8b-a267-4633c1e5bbfd.json new file mode 100644 index 00000000000..44bf71758ec --- /dev/null +++ b/change/@react-native-windows-fs-0a613149-b0a6-4c8b-a267-4633c1e5bbfd.json @@ -0,0 +1,7 @@ +{ + "type": "prerelease", + "comment": "Integrate 0.84.0-nightly-20251212-dd390dbbe", + "packageName": "@react-native-windows/fs", + "email": "66076509+vineethkuttan@users.noreply.github.com", + "dependentChangeType": "patch" +} diff --git a/change/@react-native-windows-package-utils-2c04a2c8-fb90-416c-bb82-6bba1aad8972.json b/change/@react-native-windows-package-utils-2c04a2c8-fb90-416c-bb82-6bba1aad8972.json new file mode 100644 index 00000000000..00fcd35d9e2 --- /dev/null +++ b/change/@react-native-windows-package-utils-2c04a2c8-fb90-416c-bb82-6bba1aad8972.json @@ -0,0 +1,7 @@ +{ + "type": "prerelease", + "comment": "Integrate 0.84.0-nightly-20251212-dd390dbbe", + "packageName": "@react-native-windows/package-utils", + "email": "66076509+vineethkuttan@users.noreply.github.com", + "dependentChangeType": "patch" +} diff --git a/change/@react-native-windows-perf-testing-46ea050f-3372-46d9-bbf9-8f9251af5a8d.json b/change/@react-native-windows-perf-testing-46ea050f-3372-46d9-bbf9-8f9251af5a8d.json new file mode 100644 index 00000000000..f0dde189a5e --- /dev/null +++ b/change/@react-native-windows-perf-testing-46ea050f-3372-46d9-bbf9-8f9251af5a8d.json @@ -0,0 +1,7 @@ +{ + "type": "prerelease", + "comment": "Integrate 0.84.0-nightly-20251212-dd390dbbe", + "packageName": "@react-native-windows/perf-testing", + "email": "66076509+vineethkuttan@users.noreply.github.com", + "dependentChangeType": "patch" +} diff --git a/change/@react-native-windows-telemetry-99370491-6cc6-4873-aebb-53ca5698fffc.json b/change/@react-native-windows-telemetry-99370491-6cc6-4873-aebb-53ca5698fffc.json new file mode 100644 index 00000000000..9538889feb3 --- /dev/null +++ b/change/@react-native-windows-telemetry-99370491-6cc6-4873-aebb-53ca5698fffc.json @@ -0,0 +1,7 @@ +{ + "type": "prerelease", + "comment": "Integrate 0.84.0-nightly-20251212-dd390dbbe", + "packageName": "@react-native-windows/telemetry", + "email": "66076509+vineethkuttan@users.noreply.github.com", + "dependentChangeType": "patch" +} diff --git a/change/react-native-platform-override-9f668259-e328-4c66-9da8-50ae0cb57d5a.json b/change/react-native-platform-override-9f668259-e328-4c66-9da8-50ae0cb57d5a.json new file mode 100644 index 00000000000..00164e6c860 --- /dev/null +++ b/change/react-native-platform-override-9f668259-e328-4c66-9da8-50ae0cb57d5a.json @@ -0,0 +1,7 @@ +{ + "type": "prerelease", + "comment": "Integrate 0.84.0-nightly-20251212-dd390dbbe", + "packageName": "react-native-platform-override", + "email": "66076509+vineethkuttan@users.noreply.github.com", + "dependentChangeType": "patch" +} diff --git a/change/react-native-windows-fb7cd507-5c0d-4772-bd5a-77311cf5371e.json b/change/react-native-windows-fb7cd507-5c0d-4772-bd5a-77311cf5371e.json new file mode 100644 index 00000000000..6bb3c191035 --- /dev/null +++ b/change/react-native-windows-fb7cd507-5c0d-4772-bd5a-77311cf5371e.json @@ -0,0 +1,7 @@ +{ + "type": "prerelease", + "comment": "Integrate 0.84.0-nightly-20251212-dd390dbbe", + "packageName": "react-native-windows", + "email": "66076509+vineethkuttan@users.noreply.github.com", + "dependentChangeType": "patch" +} diff --git a/change/react-native-windows-init-86a95ce1-fbe2-4e9f-9a05-22ad66a9a8df.json b/change/react-native-windows-init-86a95ce1-fbe2-4e9f-9a05-22ad66a9a8df.json new file mode 100644 index 00000000000..59eb65dc0f1 --- /dev/null +++ b/change/react-native-windows-init-86a95ce1-fbe2-4e9f-9a05-22ad66a9a8df.json @@ -0,0 +1,7 @@ +{ + "type": "prerelease", + "comment": "Integrate 0.84.0-nightly-20251212-dd390dbbe", + "packageName": "react-native-windows-init", + "email": "66076509+vineethkuttan@users.noreply.github.com", + "dependentChangeType": "patch" +} diff --git a/packages/@office-iss/react-native-win32-tester/overrides.json b/packages/@office-iss/react-native-win32-tester/overrides.json index fc2ace5294e..fa6e44d6503 100644 --- a/packages/@office-iss/react-native-win32-tester/overrides.json +++ b/packages/@office-iss/react-native-win32-tester/overrides.json @@ -5,7 +5,7 @@ "excludePatterns": [ "src/js/examples-win32/**" ], - "baseVersion": "0.83.0-nightly-20251104-502efe1cc", + "baseVersion": "0.84.0-nightly-20251212-dd390dbbe", "overrides": [ { "type": "patch", @@ -42,7 +42,7 @@ "type": "derived", "file": "src/js/utils/RNTesterList.win32.js", "baseFile": "packages/rn-tester/js/utils/RNTesterList.android.js", - "baseHash": "419d588f738d7f9fc252019e74ca7bc92c6a03bf" + "baseHash": "21f111f08b53ae5d60a7c03044ae64d867d93dbb" } ] } \ No newline at end of file diff --git a/packages/@office-iss/react-native-win32-tester/package.json b/packages/@office-iss/react-native-win32-tester/package.json index 59a6735320f..15f2334e042 100644 --- a/packages/@office-iss/react-native-win32-tester/package.json +++ b/packages/@office-iss/react-native-win32-tester/package.json @@ -11,7 +11,7 @@ "validate-overrides": "react-native-platform-override validate" }, "dependencies": { - "@react-native/tester": "0.83.0-nightly-20251104-502efe1cc", + "@react-native/tester": "0.84.0-nightly-20251212-dd390dbbe", "@typescript-eslint/eslint-plugin": "^7.1.1", "@typescript-eslint/parser": "^7.1.1", "flow-enums-runtime": "^0.0.6" @@ -19,7 +19,7 @@ "peerDependencies": { "@office-iss/react-native-win32": "^0.0.0-canary.308", "react": "19.2.0", - "react-native": "0.83.0-nightly-20251104-502efe1cc" + "react-native": "0.84.0-nightly-20251212-dd390dbbe" }, "devDependencies": { "@office-iss/react-native-win32": "^0.0.0-canary.308", @@ -30,7 +30,7 @@ "@types/node": "^22.14.0", "eslint": "^8.19.0", "just-scripts": "^1.3.3", - "react-native": "0.83.0-nightly-20251104-502efe1cc", + "react-native": "0.84.0-nightly-20251212-dd390dbbe", "react-native-platform-override": "0.0.0-canary.1020", "typescript": "5.0.4" }, diff --git a/packages/@office-iss/react-native-win32-tester/src/js/utils/RNTesterList.win32.js b/packages/@office-iss/react-native-win32-tester/src/js/utils/RNTesterList.win32.js index 62255f911e1..d9c5c9608d4 100644 --- a/packages/@office-iss/react-native-win32-tester/src/js/utils/RNTesterList.win32.js +++ b/packages/@office-iss/react-native-win32-tester/src/js/utils/RNTesterList.win32.js @@ -78,6 +78,16 @@ const Components: Array = [ key: 'KeyboardAvoidingViewExample', module: require('../examples/KeyboardAvoidingView/KeyboardAvoidingViewExample'), }, + { + key: 'KeyEvents', + module: require('../examples/KeyboardEventsExample/KeyboardEventsExample') + .default, + }, + { + key: 'ModalExample', + category: 'UI', + module: require('../examples/Modal/ModalExample'), + }, { key: 'NewAppScreenExample', module: require('../examples/NewAppScreen/NewAppScreenExample'), @@ -364,11 +374,17 @@ const APIs: Array = ([ key: 'LegacyModuleExample', module: require('../examples/TurboModule/LegacyModuleExample'), }, - { - key: 'TurboCxxModuleExample', - category: 'Basic', - module: require('../examples/TurboModule/TurboCxxModuleExample'), - }, + // Basic check to detect the availability of the IntersectionObserver API. + // $FlowExpectedError[cannot-resolve-name] + ...(typeof IntersectionObserver === 'function' + ? [ + { + key: 'IntersectionObserver', + category: 'UI', + module: require('../examples/IntersectionObserver/IntersectionObserverIndex'), + }, + ] + : []), // Basic check to detect the availability of the modern Performance API. ...(typeof performance.getEntries === 'function' ? [ diff --git a/packages/@office-iss/react-native-win32/.flowconfig b/packages/@office-iss/react-native-win32/.flowconfig index 12eb888bc23..1ac0ebdeaa7 100644 --- a/packages/@office-iss/react-native-win32/.flowconfig +++ b/packages/@office-iss/react-native-win32/.flowconfig @@ -144,7 +144,7 @@ module.name_mapper='^@office-iss/react-native-win32$' -> '/index.w module.name_mapper='^react-native/\(.*\)$' -> '/\1' module.name_mapper='^@office-iss/react-native-win32/\(.*\)$' -> '\/1' module.name_mapper='^@react-native/dev-middleware$' -> '/\1' -module.name_mapper='^@?[./a-zA-Z0-9$_-]+\.\(bmp\|gif\|jpg\|jpeg\|png\|psd\|svg\|webp\|m4v\|mov\|mp4\|mpeg\|mpg\|webm\|aac\|aiff\|caf\|m4a\|mp3\|wav\|html\|pdf\|xml\|ktx\)$' -> '/Libraries/Image/RelativeImageStub' +module.name_mapper='^@?[./a-zA-Z0-9$_-]+\.\(bmp\|gif\|jpg\|jpeg\|png\|psd\|svg\|webp\|m4v\|mov\|mp4\|mpeg\|mpg\|webm\|aac\|aiff\|caf\|m4a\|mp3\|wav\|html\|pdf\|xml\|ktx\|heic\|heif\)$' -> '/Libraries/Image/RelativeImageStub' module.system.haste.module_ref_prefix=m# @@ -175,4 +175,4 @@ untyped-import untyped-type-import [version] -^0.289.0 +^0.293.0 diff --git a/packages/@office-iss/react-native-win32/overrides.json b/packages/@office-iss/react-native-win32/overrides.json index 8c1deb72816..24300baad9b 100644 --- a/packages/@office-iss/react-native-win32/overrides.json +++ b/packages/@office-iss/react-native-win32/overrides.json @@ -7,25 +7,25 @@ "**/__snapshots__/**", "src-win/rntypes/**" ], - "baseVersion": "0.83.0-nightly-20251104-502efe1cc", + "baseVersion": "0.84.0-nightly-20251212-dd390dbbe", "overrides": [ { "type": "derived", "file": ".flowconfig", "baseFile": ".flowconfig", - "baseHash": "5a5f25ce055b9b4465410b513de9dc6d4db39a90" + "baseHash": "f8443da42da65a4f55de1fdcc8e30c3446004ad0" }, { "type": "derived", "file": "src-win/index.win32.js", "baseFile": "packages/react-native/index.js", - "baseHash": "a1db6ce79c25843956a583b2dbd34aa11d15da0f" + "baseHash": "43b61164095fb1f33793316908d5f974e7c46651" }, { "type": "derived", "file": "src-win/index.win32.js.flow", "baseFile": "packages/react-native/index.js.flow", - "baseHash": "6d9f0f7e75b7575870821c3fca5db41ba7e14809" + "baseHash": "da9cb1941e2b3d395d157e64a56b71a26396f2bf" }, { "type": "platform", @@ -41,13 +41,13 @@ "type": "derived", "file": "src-win/Libraries/Components/AccessibilityInfo/AccessibilityInfo.d.ts", "baseFile": "packages/react-native/Libraries/Components/AccessibilityInfo/AccessibilityInfo.d.ts", - "baseHash": "30a3c7351c6a466e2ed95e9b416907ac677d71ca" + "baseHash": "34bb1374c3d892607c894ad676de1e5d104ffaae" }, { "type": "derived", "file": "src-win/Libraries/Components/AccessibilityInfo/AccessibilityInfo.win32.js", "baseFile": "packages/react-native/Libraries/Components/AccessibilityInfo/AccessibilityInfo.js", - "baseHash": "93b9eb92a1237885cdbff255d473584226421dd3" + "baseHash": "86b1d5f06946b43428b2b09351ab6a0cff56a894" }, { "type": "copy", @@ -66,7 +66,7 @@ "type": "derived", "file": "src-win/Libraries/Components/Button.win32.js", "baseFile": "packages/react-native/Libraries/Components/Button.js", - "baseHash": "26d3afc77f82939021f848eb8185b3b441fb3c7d" + "baseHash": "67bb8c4e71cd242d366b3607f4c71f07e70f2488" }, { "type": "platform", @@ -207,7 +207,7 @@ "type": "patch", "file": "src-win/Libraries/Components/View/ViewPropTypes.win32.js", "baseFile": "packages/react-native/Libraries/Components/View/ViewPropTypes.js", - "baseHash": "d04b64a97b6040611d96b909c41230c1a350ebe6", + "baseHash": "2a031cb660382c3ebb74fcbfe71535fa99810cdb", "issue": 6240 }, { @@ -431,7 +431,7 @@ "type": "derived", "file": "src-win/Libraries/Text/Text.win32.js", "baseFile": "packages/react-native/Libraries/Text/Text.js", - "baseHash": "59bf5757acc083a749a38173b3610529b27ef4fb" + "baseHash": "d6607b86327891c5920c56ff833a9d984f20533f" }, { "type": "derived", @@ -450,7 +450,7 @@ "type": "patch", "file": "src-win/Libraries/Types/CoreEventTypes.win32.js", "baseFile": "packages/react-native/Libraries/Types/CoreEventTypes.js", - "baseHash": "ed736df6081d2fbbf54a646b8373bf485449255a", + "baseHash": "5834bb306dcf85772546feae7af58a875196d309", "issue": 6240 }, { @@ -503,7 +503,7 @@ "type": "patch", "file": "src-win/src/private/animated/NativeAnimatedHelper.win32.js", "baseFile": "packages/react-native/src/private/animated/NativeAnimatedHelper.js", - "baseHash": "14407780e54e66515159aed1a51cee154b1d5339", + "baseHash": "fa2343be98b0eb239a82376cd903f9fef16464f2", "issue": 11041 }, { diff --git a/packages/@office-iss/react-native-win32/package.json b/packages/@office-iss/react-native-win32/package.json index b094d71b7e9..32ef7ec74e2 100644 --- a/packages/@office-iss/react-native-win32/package.json +++ b/packages/@office-iss/react-native-win32/package.json @@ -30,13 +30,13 @@ "@react-native-community/cli-platform-android": "20.0.0", "@react-native-community/cli-platform-ios": "20.0.0", "@react-native/assets": "1.0.0", - "@react-native/assets-registry": "0.83.0-nightly-20251104-502efe1cc", - "@react-native/codegen": "0.83.0-nightly-20251104-502efe1cc", - "@react-native/community-cli-plugin": "0.83.0-nightly-20251104-502efe1cc", - "@react-native/gradle-plugin": "0.83.0-nightly-20251104-502efe1cc", - "@react-native/js-polyfills": "0.83.0-nightly-20251104-502efe1cc", - "@react-native/normalize-colors": "0.83.0-nightly-20251104-502efe1cc", - "@react-native/virtualized-lists": "0.83.0-nightly-20251104-502efe1cc", + "@react-native/assets-registry": "0.84.0-nightly-20251212-dd390dbbe", + "@react-native/codegen": "0.84.0-nightly-20251212-dd390dbbe", + "@react-native/community-cli-plugin": "0.84.0-nightly-20251212-dd390dbbe", + "@react-native/gradle-plugin": "0.84.0-nightly-20251212-dd390dbbe", + "@react-native/js-polyfills": "0.84.0-nightly-20251212-dd390dbbe", + "@react-native/normalize-colors": "0.84.0-nightly-20251212-dd390dbbe", + "@react-native/virtualized-lists": "0.84.0-nightly-20251212-dd390dbbe", "abort-controller": "^3.0.0", "anser": "^1.4.9", "ansi-regex": "^5.0.0", @@ -49,11 +49,12 @@ "event-target-shim": "^5.0.1", "flow-enums-runtime": "^0.0.6", "glob": "^7.1.1", + "hermes-compiler": "0.14.0-commitly-202512102158-39fca9fda", "invariant": "^2.2.4", "jest-environment-node": "^29.7.0", "memoize-one": "^5.0.0", - "metro-runtime": "^0.83.1", - "metro-source-map": "^0.83.1", + "metro-runtime": "^0.83.3", + "metro-source-map": "^0.83.3", "mkdirp": "^0.5.1", "nullthrows": "^1.1.1", "pretty-format": "^29.7.0", @@ -62,17 +63,18 @@ "react-devtools-core": "^6.1.5", "react-refresh": "^0.14.0", "regenerator-runtime": "^0.13.2", - "scheduler": "0.26.0", + "scheduler": "0.27.0", "semver": "^7.1.3", "stacktrace-parser": "^0.1.10", + "tinyglobby": "^0.2.15", "whatwg-fetch": "^3.0.0", - "ws": "^6.2.3", + "ws": "^7.5.10", "yargs": "^17.6.2" }, "devDependencies": { "@babel/core": "^7.25.2", "@babel/eslint-parser": "^7.25.1", - "@react-native/metro-config": "0.83.0-nightly-20251104-502efe1cc", + "@react-native/metro-config": "0.84.0-nightly-20251212-dd390dbbe", "@rnw-scripts/babel-react-native-config": "0.0.0", "@rnw-scripts/eslint-config": "1.2.38", "@rnw-scripts/jest-out-of-tree-snapshot-resolver": "^1.1.42", @@ -84,19 +86,19 @@ "@types/prop-types": "15.7.1", "@types/react": "^19.2.0", "eslint": "^8.19.0", - "flow-bin": "^0.289.0", + "flow-bin": "^0.293.0", "jscodeshift": "^0.14.0", "just-scripts": "^1.3.3", - "prettier": "2.8.8", + "prettier": "^3.6.2", "react": "19.2.0", - "react-native": "0.83.0-nightly-20251104-502efe1cc", + "react-native": "0.84.0-nightly-20251212-dd390dbbe", "react-native-platform-override": "0.0.0-canary.1020", "typescript": "5.0.4" }, "peerDependencies": { "@types/react": "^19.2.0", "react": "^19.2.0", - "react-native": "0.83.0-nightly-20251104-502efe1cc" + "react-native": "0.84.0-nightly-20251212-dd390dbbe" }, "beachball": { "defaultNpmTag": "canary", diff --git a/packages/@office-iss/react-native-win32/src-win/Libraries/Components/AccessibilityInfo/AccessibilityInfo.d.ts b/packages/@office-iss/react-native-win32/src-win/Libraries/Components/AccessibilityInfo/AccessibilityInfo.d.ts index cdb508f27a5..d33050d8a2d 100644 --- a/packages/@office-iss/react-native-win32/src-win/Libraries/Components/AccessibilityInfo/AccessibilityInfo.d.ts +++ b/packages/@office-iss/react-native-win32/src-win/Libraries/Components/AccessibilityInfo/AccessibilityInfo.d.ts @@ -150,12 +150,18 @@ export interface AccessibilityInfoStatic { * - `announcement`: The string announced by the screen reader. * - `options`: An object that configures the reading options. * - `queue`: The announcement will be queued behind existing announcements. iOS only. + * - `priority`: The priority of the announcement. Possible values: 'low' | 'default' | 'high'. + * High priority announcements will interrupt any ongoing speech and cannot be interrupted. + * Default priority announcements will interrupt any ongoing speech but can be interrupted. + * Low priority announcements will not interrupt ongoing speech and can be interrupted. + * (iOS only). * - `nativeID`: The nativeID of the element to send the announcement from. win32 only. */ announceForAccessibilityWithOptions( announcement: string, options: { queue?: boolean | undefined; + priority?: 'low' | 'default' | 'high' | undefined; nativeID?: string | undefined; // win32 }, ): void; diff --git a/packages/@office-iss/react-native-win32/src-win/Libraries/Components/AccessibilityInfo/AccessibilityInfo.win32.js b/packages/@office-iss/react-native-win32/src-win/Libraries/Components/AccessibilityInfo/AccessibilityInfo.win32.js index 9fbd984e4a4..ef908846b00 100644 --- a/packages/@office-iss/react-native-win32/src-win/Libraries/Components/AccessibilityInfo/AccessibilityInfo.win32.js +++ b/packages/@office-iss/react-native-win32/src-win/Libraries/Components/AccessibilityInfo/AccessibilityInfo.win32.js @@ -502,12 +502,18 @@ const AccessibilityInfo = { * - `announcement`: The string announced by the screen reader. * - `options`: An object that configures the reading options. * - `queue`: The announcement will be queued behind existing announcements. iOS only. + * - `priority`: The priority of the announcement. Possible values: 'low' | 'default' | 'high'. + * High priority announcements will interrupt any ongoing speech and cannot be interrupted. + * Default priority announcements will interrupt any ongoing speech but can be interrupted. + * Low priority announcements will not interrupt ongoing speech and can be interrupted. + * (iOS only). * - `nativeID`: The nativeID of the element to send the announcement from. win32 only. */ announceForAccessibilityWithOptions( announcement: string, options: { queue?: boolean, + priority?: 'low' | 'default' | 'high', nativeID?: string, // win32 }, ): void { @@ -515,9 +521,10 @@ const AccessibilityInfo = { NativeAccessibilityInfo?.announceForAccessibility(announcement); } else if (Platform.OS === 'win32') { if (NativeAccessibilityInfoWin32?.announceForAccessibilityWithOptions) { + const {priority: _, ...win32Options} = options; NativeAccessibilityInfoWin32?.announceForAccessibilityWithOptions( announcement, - options, + win32Options, ); } else { NativeAccessibilityInfoWin32?.announceForAccessibility(announcement); diff --git a/packages/@office-iss/react-native-win32/src-win/Libraries/Components/Button.win32.js b/packages/@office-iss/react-native-win32/src-win/Libraries/Components/Button.win32.js index 12afdda284b..05cf60822f3 100644 --- a/packages/@office-iss/react-native-win32/src-win/Libraries/Components/Button.win32.js +++ b/packages/@office-iss/react-native-win32/src-win/Libraries/Components/Button.win32.js @@ -187,9 +187,6 @@ export type ButtonProps = $ReadOnly<{ [button:source]: https://github.com/facebook/react-native/blob/HEAD/Libraries/Components/Button.js - [button:examples]: - https://js.coach/?menu%5Bcollections%5D=React%20Native&page=1&query=button - ```jsx