Skip to content

Commit 2f75a83

Browse files
authored
docs: added missing AcccessibilityInfo methods (facebook#5009)
1 parent aad4d2e commit 2f75a83

9 files changed

Lines changed: 180 additions & 0 deletions

File tree

docs/accessibilityinfo.md

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -224,6 +224,26 @@ Query whether a screen reader is currently enabled. Returns a promise which reso
224224

225225
---
226226

227+
### `isHighTextContrastEnabled()` <div className="label android">Android</div>
228+
229+
```tsx
230+
static isHighTextContrastEnabled(): Promise<boolean>
231+
```
232+
233+
Query whether high text contrast is currently enabled. Returns a promise which resolves to a boolean. The result is `true` when high text contrast is enabled and `false` otherwise.
234+
235+
---
236+
237+
### `isDarkerSystemColorsEnabled()` <div className="label ios">iOS</div>
238+
239+
```tsx
240+
static isDarkerSystemColorsEnabled(): Promise<boolean>
241+
```
242+
243+
Query whether dark system colors is currently enabled. Returns a promise which resolves to a boolean. The result is `true` when dark system colors is enabled and `false` otherwise.
244+
245+
---
246+
227247
### `prefersCrossFadeTransitions()` <div className="label ios">iOS</div>
228248

229249
```tsx

website/versioned_docs/version-0.77/accessibilityinfo.md

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -222,6 +222,26 @@ Query whether a screen reader is currently enabled. Returns a promise which reso
222222

223223
---
224224

225+
### `isHighTextContrastEnabled()` <div className="label android">Android</div>
226+
227+
```tsx
228+
static isHighTextContrastEnabled(): Promise<boolean>
229+
```
230+
231+
Query whether high text contrast is currently enabled. Returns a promise which resolves to a boolean. The result is `true` when high text contrast is enabled and `false` otherwise.
232+
233+
---
234+
235+
### `isDarkerSystemColorsEnabled()` <div className="label ios">iOS</div>
236+
237+
```tsx
238+
static isDarkerSystemColorsEnabled(): Promise<boolean>
239+
```
240+
241+
Query whether dark system colors is currently enabled. Returns a promise which resolves to a boolean. The result is `true` when dark system colors is enabled and `false` otherwise.
242+
243+
---
244+
225245
### `prefersCrossFadeTransitions()` <div className="label ios">iOS</div>
226246

227247
```tsx

website/versioned_docs/version-0.78/accessibilityinfo.md

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -222,6 +222,26 @@ Query whether a screen reader is currently enabled. Returns a promise which reso
222222

223223
---
224224

225+
### `isHighTextContrastEnabled()` <div className="label android">Android</div>
226+
227+
```tsx
228+
static isHighTextContrastEnabled(): Promise<boolean>
229+
```
230+
231+
Query whether high text contrast is currently enabled. Returns a promise which resolves to a boolean. The result is `true` when high text contrast is enabled and `false` otherwise.
232+
233+
---
234+
235+
### `isDarkerSystemColorsEnabled()` <div className="label ios">iOS</div>
236+
237+
```tsx
238+
static isDarkerSystemColorsEnabled(): Promise<boolean>
239+
```
240+
241+
Query whether dark system colors is currently enabled. Returns a promise which resolves to a boolean. The result is `true` when dark system colors is enabled and `false` otherwise.
242+
243+
---
244+
225245
### `prefersCrossFadeTransitions()` <div className="label ios">iOS</div>
226246

227247
```tsx

website/versioned_docs/version-0.79/accessibilityinfo.md

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -222,6 +222,26 @@ Query whether a screen reader is currently enabled. Returns a promise which reso
222222

223223
---
224224

225+
### `isHighTextContrastEnabled()` <div className="label android">Android</div>
226+
227+
```tsx
228+
static isHighTextContrastEnabled(): Promise<boolean>
229+
```
230+
231+
Query whether high text contrast is currently enabled. Returns a promise which resolves to a boolean. The result is `true` when high text contrast is enabled and `false` otherwise.
232+
233+
---
234+
235+
### `isDarkerSystemColorsEnabled()` <div className="label ios">iOS</div>
236+
237+
```tsx
238+
static isDarkerSystemColorsEnabled(): Promise<boolean>
239+
```
240+
241+
Query whether dark system colors is currently enabled. Returns a promise which resolves to a boolean. The result is `true` when dark system colors is enabled and `false` otherwise.
242+
243+
---
244+
225245
### `prefersCrossFadeTransitions()` <div className="label ios">iOS</div>
226246

227247
```tsx

website/versioned_docs/version-0.80/accessibilityinfo.md

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -222,6 +222,26 @@ Query whether a screen reader is currently enabled. Returns a promise which reso
222222

223223
---
224224

225+
### `isHighTextContrastEnabled()` <div className="label android">Android</div>
226+
227+
```tsx
228+
static isHighTextContrastEnabled(): Promise<boolean>
229+
```
230+
231+
Query whether high text contrast is currently enabled. Returns a promise which resolves to a boolean. The result is `true` when high text contrast is enabled and `false` otherwise.
232+
233+
---
234+
235+
### `isDarkerSystemColorsEnabled()` <div className="label ios">iOS</div>
236+
237+
```tsx
238+
static isDarkerSystemColorsEnabled(): Promise<boolean>
239+
```
240+
241+
Query whether dark system colors is currently enabled. Returns a promise which resolves to a boolean. The result is `true` when dark system colors is enabled and `false` otherwise.
242+
243+
---
244+
225245
### `prefersCrossFadeTransitions()` <div className="label ios">iOS</div>
226246

227247
```tsx

website/versioned_docs/version-0.81/accessibilityinfo.md

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -222,6 +222,26 @@ Query whether a screen reader is currently enabled. Returns a promise which reso
222222

223223
---
224224

225+
### `isHighTextContrastEnabled()` <div className="label android">Android</div>
226+
227+
```tsx
228+
static isHighTextContrastEnabled(): Promise<boolean>
229+
```
230+
231+
Query whether high text contrast is currently enabled. Returns a promise which resolves to a boolean. The result is `true` when high text contrast is enabled and `false` otherwise.
232+
233+
---
234+
235+
### `isDarkerSystemColorsEnabled()` <div className="label ios">iOS</div>
236+
237+
```tsx
238+
static isDarkerSystemColorsEnabled(): Promise<boolean>
239+
```
240+
241+
Query whether dark system colors is currently enabled. Returns a promise which resolves to a boolean. The result is `true` when dark system colors is enabled and `false` otherwise.
242+
243+
---
244+
225245
### `prefersCrossFadeTransitions()` <div className="label ios">iOS</div>
226246

227247
```tsx

website/versioned_docs/version-0.82/accessibilityinfo.md

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -224,6 +224,26 @@ Query whether a screen reader is currently enabled. Returns a promise which reso
224224

225225
---
226226

227+
### `isHighTextContrastEnabled()` <div className="label android">Android</div>
228+
229+
```tsx
230+
static isHighTextContrastEnabled(): Promise<boolean>
231+
```
232+
233+
Query whether high text contrast is currently enabled. Returns a promise which resolves to a boolean. The result is `true` when high text contrast is enabled and `false` otherwise.
234+
235+
---
236+
237+
### `isDarkerSystemColorsEnabled()` <div className="label ios">iOS</div>
238+
239+
```tsx
240+
static isDarkerSystemColorsEnabled(): Promise<boolean>
241+
```
242+
243+
Query whether dark system colors is currently enabled. Returns a promise which resolves to a boolean. The result is `true` when dark system colors is enabled and `false` otherwise.
244+
245+
---
246+
227247
### `prefersCrossFadeTransitions()` <div className="label ios">iOS</div>
228248

229249
```tsx

website/versioned_docs/version-0.83/accessibilityinfo.md

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -224,6 +224,26 @@ Query whether a screen reader is currently enabled. Returns a promise which reso
224224

225225
---
226226

227+
### `isHighTextContrastEnabled()` <div className="label android">Android</div>
228+
229+
```tsx
230+
static isHighTextContrastEnabled(): Promise<boolean>
231+
```
232+
233+
Query whether high text contrast is currently enabled. Returns a promise which resolves to a boolean. The result is `true` when high text contrast is enabled and `false` otherwise.
234+
235+
---
236+
237+
### `isDarkerSystemColorsEnabled()` <div className="label ios">iOS</div>
238+
239+
```tsx
240+
static isDarkerSystemColorsEnabled(): Promise<boolean>
241+
```
242+
243+
Query whether dark system colors is currently enabled. Returns a promise which resolves to a boolean. The result is `true` when dark system colors is enabled and `false` otherwise.
244+
245+
---
246+
227247
### `prefersCrossFadeTransitions()` <div className="label ios">iOS</div>
228248

229249
```tsx

website/versioned_docs/version-0.84/accessibilityinfo.md

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -224,6 +224,26 @@ Query whether a screen reader is currently enabled. Returns a promise which reso
224224

225225
---
226226

227+
### `isHighTextContrastEnabled()` <div className="label android">Android</div>
228+
229+
```tsx
230+
static isHighTextContrastEnabled(): Promise<boolean>
231+
```
232+
233+
Query whether high text contrast is currently enabled. Returns a promise which resolves to a boolean. The result is `true` when high text contrast is enabled and `false` otherwise.
234+
235+
---
236+
237+
### `isDarkerSystemColorsEnabled()` <div className="label ios">iOS</div>
238+
239+
```tsx
240+
static isDarkerSystemColorsEnabled(): Promise<boolean>
241+
```
242+
243+
Query whether dark system colors is currently enabled. Returns a promise which resolves to a boolean. The result is `true` when dark system colors is enabled and `false` otherwise.
244+
245+
---
246+
227247
### `prefersCrossFadeTransitions()` <div className="label ios">iOS</div>
228248

229249
```tsx

0 commit comments

Comments
 (0)