Skip to content

Commit 51a7543

Browse files
AccessibilityInfo: add prefersCrossFadeTransitions to docs (facebook#3279)
1 parent 010d7cd commit 51a7543

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

docs/accessibilityinfo.md

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -210,7 +210,7 @@ Post a string to be announced by the screen reader with modification options. By
210210
static getRecommendedTimeoutMillis(originalTimeout)
211211
```
212212

213-
Gets the timeout in millisecond that the user needs.
213+
Gets the timeout in millisecond that the user needs.
214214
This value is set in "Time to take action (Accessibility timeout)" of "Accessibility" settings.
215215

216216
**Parameters:**
@@ -293,6 +293,16 @@ Query whether a screen reader is currently enabled. Returns a promise which reso
293293

294294
---
295295

296+
### `prefersCrossFadeTransitions()` <div class="label ios">iOS</div>
297+
298+
```jsx
299+
static prefersCrossFadeTransitions()
300+
```
301+
302+
Query whether reduce motion and prefer cross-fade transitions settings are currently enabled. Returns a promise which resolves to a boolean. The result is `true` when prefer cross-fade transitions is enabled and `false` otherwise.
303+
304+
---
305+
296306
### `removeEventListener()`
297307

298308
```jsx

0 commit comments

Comments
 (0)