@@ -10,7 +10,7 @@ external addEventListener: @string
|
10 | 10 | | #screenReaderChanged(bool => unit) |
11 | 11 | | #reduceTransparencyChanged(bool => unit) |
12 | 12 | | #announcementFinished(announcementResult => unit) |
13 | | -] => unit = "addEventListener" |
| 13 | +] => EventSubscription.t = "addEventListener" |
14 | 14 | |
15 | 15 | @scope("AccessibilityInfo") @module("react-native") |
16 | 16 | external announceForAccessibility: string => unit = "announceForAccessibility" |
@@ -36,7 +36,9 @@ external isReduceTransparencyEnabled: unit => Js.Promise.t<bool> = "isReduceTran
|
36 | 36 | @scope("AccessibilityInfo") @module("react-native") |
37 | 37 | external isScreenReaderEnabled: unit => Js.Promise.t<bool> = "isScreenReaderEnabled" |
38 | 38 | |
39 | | -@scope("AccessibilityInfo") @module("react-native") |
| 39 | +@deprecated("Instead of using removeEventListener(), invoke `remove()` on the subscription itself.") |
| 40 | +@scope("AccessibilityInfo") |
| 41 | +@module("react-native") |
40 | 42 | external removeEventListener: @string |
41 | 43 | [ |
42 | 44 | | #boldTextChanged(bool => unit) |
|