Skip to content

Commit 28829d5

Browse files
committed
Merge remote-tracking branch 'upstream/main' into production
2 parents 9f8cea0 + 6c17e94 commit 28829d5

File tree

160 files changed

+4871
-1304
lines changed

Some content is hidden

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

160 files changed

+4871
-1304
lines changed

.github/workflows/pre-merge.yml

Lines changed: 23 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,29 @@ jobs:
3030
- name: Check dependencies alignment
3131
run: yarn check-dependencies
3232

33-
- name: Run Workspace Lint
34-
run: yarn lint
33+
- name: Run packages lint
34+
run: yarn lint:packages
35+
36+
- name: Run plugins lint
37+
run: yarn lint:plugins
38+
39+
lint-website:
40+
runs-on: ubuntu-latest
41+
steps:
42+
- name: Checkout repository
43+
uses: actions/checkout@v6
44+
45+
- name: Enable Corepack
46+
run: corepack enable
47+
48+
- name: Set up Node.js
49+
uses: actions/setup-node@v6
50+
with:
51+
node-version: "22"
52+
cache: yarn
53+
54+
- name: Install dependencies
55+
run: yarn install --immutable
3556

3657
- name: Run Website Specific Lints
3758
working-directory: website

docs/_getting-started-linux-android.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ While you can use any editor of your choice to develop your app, you will need t
66

77
<h3>Node</h3>
88

9-
Follow the [installation instructions for your Linux distribution](https://nodejs.org/en/download/package-manager/) to install Node 20.19.4 or newer.
9+
Follow the [installation instructions for your Linux distribution](https://nodejs.org/en/download/package-manager/) to install Node 22.11.0 or newer.
1010

1111
<h3>Java Development Kit</h3>
1212

@@ -47,7 +47,7 @@ Select the "SDK Platforms" tab from within the SDK Manager, then check the box n
4747
- `Android SDK Platform 35`
4848
- `Intel x86 Atom_64 System Image` or `Google APIs Intel x86 Atom System Image`
4949

50-
Next, select the "SDK Tools" tab and check the box next to "Show Package Details" here as well. Look for and expand the "Android SDK Build-Tools" entry, then make sure that `35.0.0` is selected.
50+
Next, select the "SDK Tools" tab and check the box next to "Show Package Details" here as well. Look for and expand the "Android SDK Build-Tools" entry, then make sure that `36.0.0` and `Android SDK Command-line Tools (latest)` are selected.
5151

5252
Finally, click "Apply" to download and install the Android SDK and related build tools.
5353

docs/_getting-started-macos-android.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ brew install node
1313
brew install watchman
1414
```
1515

16-
If you have already installed Node on your system, make sure it is Node 20.19.4 or newer.
16+
If you have already installed Node on your system, make sure it is Node 22.11.0 or newer.
1717

1818
[Watchman](https://facebook.github.io/watchman) is a tool by Facebook for watching changes in the filesystem. It is highly recommended you install it for better performance.
1919

@@ -88,7 +88,7 @@ Select the "SDK Platforms" tab from within the SDK Manager, then check the box n
8888
- `Android SDK Platform 35`
8989
- `Intel x86 Atom_64 System Image` or `Google APIs Intel x86 Atom System Image` or (for Apple M1 Silicon) `Google APIs ARM 64 v8a System Image`
9090

91-
Next, select the "SDK Tools" tab and check the box next to "Show Package Details" here as well. Look for and expand the "Android SDK Build-Tools" entry, then make sure that `35.0.0` is selected.
91+
Next, select the "SDK Tools" tab and check the box next to "Show Package Details" here as well. Look for and expand the "Android SDK Build-Tools" entry, then make sure that `36.0.0` and `Android SDK Command-line Tools (latest)` are selected.
9292

9393
Finally, click "Apply" to download and install the Android SDK and related build tools.
9494

docs/_getting-started-macos-ios.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ brew install node
1313
brew install watchman
1414
```
1515

16-
If you have already installed Node on your system, make sure it is Node 20.19.4 or newer.
16+
If you have already installed Node on your system, make sure it is Node 22.11.0 or newer.
1717

1818
[Watchman](https://facebook.github.io/watchman) is a tool by Facebook for watching changes in the filesystem. It is highly recommended you install it for better performance.
1919

docs/_getting-started-windows-android.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ Open an Administrator Command Prompt (right click Command Prompt and select "Run
1818
choco install -y nodejs-lts microsoft-openjdk17
1919
```
2020

21-
If you have already installed Node on your system, make sure it is Node 20.19.4 or newer. If you already have a JDK on your system, we recommend JDK17. You may encounter problems using higher JDK versions.
21+
If you have already installed Node on your system, make sure it is Node 22.11.0 or newer. If you already have a JDK on your system, we recommend JDK17. You may encounter problems using higher JDK versions.
2222

2323
:::note
2424
You can find additional installation options on [Node's Downloads page](https://nodejs.org/en/download/).
@@ -66,7 +66,7 @@ Select the "SDK Platforms" tab from within the SDK Manager, then check the box n
6666
- `Android SDK Platform 35`
6767
- `Intel x86 Atom_64 System Image` or `Google APIs Intel x86 Atom System Image`
6868

69-
Next, select the "SDK Tools" tab and check the box next to "Show Package Details" here as well. Look for and expand the `Android SDK Build-Tools` entry, then make sure that `35.0.0` is selected.
69+
Next, select the "SDK Tools" tab and check the box next to "Show Package Details" here as well. Look for and expand the `Android SDK Build-Tools` entry, then make sure that `36.0.0` and `Android SDK Command-line Tools (latest)` are selected.
7070

7171
Finally, click "Apply" to download and install the Android SDK and related build tools.
7272

docs/accessibilityinfo.md

Lines changed: 24 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -234,7 +234,11 @@ Query whether reduce motion and prefer cross-fade transitions settings are curre
234234

235235
---
236236

237-
### `setAccessibilityFocus()`
237+
### 🗑️ `setAccessibilityFocus()`
238+
239+
:::warning Deprecated
240+
Prefer using `sendAccessibilityEvent` with eventType `focus` instead.
241+
:::
238242

239243
```tsx
240244
static setAccessibilityFocus(reactTag: number);
@@ -247,3 +251,22 @@ On Android, this calls `UIManager.sendAccessibilityEvent` method with passed `re
247251
:::note
248252
Make sure that any `View` you want to receive the accessibility focus has `accessible={true}`.
249253
:::
254+
255+
---
256+
257+
### `sendAccessibilityEvent()`
258+
259+
```tsx
260+
static sendAccessibilityEvent(host: HostInstance, eventType: AccessibilityEventTypes);
261+
```
262+
263+
Imperatively trigger an accessibility event on a React component, like changing the focused element for a screen reader.
264+
265+
:::note
266+
Make sure that any `View` you want to receive the accessibility focus has `accessible={true}`.
267+
:::
268+
269+
| Name | Type | Description |
270+
| -------------------------------------------------------------- | ----------------------- | ---------------------------------------------------------------------------------------------------------------------- |
271+
| host <div className="label basic required">Required</div> | HostInstance | The component ref to send the event to. |
272+
| eventType <div className="label basic required">Required</div> | AccessibilityEventTypes | One of `'click'` (Android only), `'focus'`, `'viewHoverEnter'` (Android only), or `'windowStateChange'` (Android only) |

docs/actionsheetios.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ id: actionsheetios
33
title: ActionSheetIOS
44
---
55

6-
Displays native to iOS [Action Sheet](https://developer.apple.com/design/human-interface-guidelines/ios/views/action-sheets/) component.
6+
Displays native to iOS [Action Sheet](https://developer.apple.com/design/human-interface-guidelines/action-sheets) component.
77

88
## Example
99

docs/animated.md

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,20 @@ Don't modify the animated value directly. You can use the [`useRef` Hook](https:
1616
The following example contains a `View` which will fade in and fade out based on the animated value `fadeAnim`
1717

1818
```SnackPlayer name=Animated%20Example
19-
import React, {useRef} from 'react';
19+
import React from 'react';
2020
import {SafeAreaView, SafeAreaProvider} from 'react-native-safe-area-context';
21-
import {Animated, Text, View, StyleSheet, Button} from 'react-native';
21+
import {
22+
Animated,
23+
Text,
24+
View,
25+
StyleSheet,
26+
Button,
27+
useAnimatedValue,
28+
} from 'react-native';
2229
2330
const App = () => {
2431
// fadeAnim will be used as the value for opacity. Initial Value: 0
25-
const fadeAnim = useRef(new Animated.Value(0)).current;
32+
const fadeAnim = useAnimatedValue(0);
2633
2734
const fadeIn = () => {
2835
// Will change fadeAnim value to 1 in 5 seconds

docs/animations.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -549,7 +549,7 @@ The native driver also works with `Animated.event`. This is especially useful fo
549549
</Animated.ScrollView>
550550
```
551551

552-
You can see the native driver in action by running the [RNTester app](https://github.com/facebook/react-native/blob/main/packages/rn-tester/), then loading the Native Animated Example. You can also take a look at the [source code](https://github.com/facebook/react-native/blob/master/packages/rn-tester/js/examples/NativeAnimation/NativeAnimationsExample.js) to learn how these examples were produced.
552+
You can see the native driver in action by running the [RNTester app](https://github.com/facebook/react-native/blob/main/packages/rn-tester/), then loading the Native Animated Example. You can also take a look at the [source code](https://github.com/facebook/react-native/blob/main/packages/rn-tester/js/examples/NativeAnimation/NativeAnimationsExample.js) to learn how these examples were produced.
553553

554554
#### Caveats
555555

docs/appstate.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -82,9 +82,9 @@ This example will only ever appear to say "Current state is: active" because the
8282

8383
This event is received when the app state has changed. The listener is called with one of [the current app state values](appstate#app-states).
8484

85-
### `memoryWarning`
85+
### `memoryWarning` <div className="label ios">iOS</div>
8686

87-
This event is used in the need of throwing memory warning or releasing it.
87+
Fires when the app receives a memory warning from the operating system.
8888

8989
### `focus` <div className="label android">Android</div>
9090

0 commit comments

Comments
 (0)