Skip to content

Commit 5b1092c

Browse files
committed
replace announceForAccessibility() with announceForAccessibilityWithOptions()
1 parent 7efaba6 commit 5b1092c

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

src/boot/OfflineNoticeProvider.js

+1-5
Original file line numberDiff line numberDiff line change
@@ -212,22 +212,18 @@ export function OfflineNoticeProvider(props: ProviderProps): Node {
212212
// another app.)
213213

214214
if (shouldShowUncertaintyNotice && !haveAnnouncedUncertain.current) {
215-
// TODO(react-native-68): Use announceForAccessibilityWithOptions to
216-
// queue this behind any in-progress announcements
217215
AccessibilityInfo.announceForAccessibilityWithOptions(_('Zulip’s Internet connection is uncertain.'), { queue: true });
218216
haveAnnouncedUncertain.current = true;
219217
}
220218

221219
if (isOnline === false && (!haveAnnouncedOffline.current || haveAnnouncedUncertain.current)) {
222-
AccessibilityInfo.announceForAccessibilityWithOptions(_('Zulip is offline.'), { queue: false });
220+
AccessibilityInfo.announceForAccessibility(_('Zulip is offline.'));
223221
haveAnnouncedOffline.current = true;
224222
haveAnnouncedUncertain.current = false;
225223
} else if (
226224
isOnline === true
227225
&& (haveAnnouncedOffline.current || haveAnnouncedUncertain.current)
228226
) {
229-
// TODO(react-native-68): Use announceForAccessibilityWithOptions to
230-
// queue this behind any in-progress announcements
231227
AccessibilityInfo.announceForAccessibilityWithOptions(_('Zulip is online.'), { queue: true });
232228

233229
haveAnnouncedOffline.current = false;

0 commit comments

Comments
 (0)