Skip to content

Commit

Permalink
feat: Add prefersCrossFadeTransitions to flow
Browse files Browse the repository at this point in the history
  • Loading branch information
gabrieldonadel committed Aug 20, 2022
1 parent d289d8f commit ff3802d
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions Libraries/Components/AccessibilityInfo/AccessibilityInfo.flow.js
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,16 @@ export interface AccessibilityInfo {
*/
isReduceMotionEnabled: () => Promise<boolean>;

/**
* 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.
*
* See https://reactnative.dev/docs/accessibilityinfo#prefersCrossFadeTransitions
*/
prefersCrossFadeTransitions(): Promise<boolean>;

/**
* Query whether reduced transparency is currently enabled.
*
Expand Down

0 comments on commit ff3802d

Please sign in to comment.