Skip to content

Set queue on accessibility announcements in OfflineNoticeProvider #5611

@gnprice

Description

@gnprice

This is a followup to #5344 (once that upgrade is done, as in #5610.) We have the following TODO-react-native comments in OfflineNoticeProvider.js:

      // TODO(react-native-68): Use announceForAccessibilityWithOptions to
      //   queue this behind any in-progress announcements
      AccessibilityInfo.announceForAccessibility(_('Zulip’s Internet connection is uncertain.'));
// …
      // TODO(react-native-68): Use announceForAccessibilityWithOptions to
      //   queue this behind any in-progress announcements
      AccessibilityInfo.announceForAccessibility(_('Zulip is online.'));

That's referring to this new feature in RN v0.68:
https://reactnative.dev/docs/0.68/AccessibilityInfo#announceforaccessibilitywithoptions

By default announcements will interrupt any existing speech, but on iOS they can be queued behind existing speech by setting queue to true in the options object.

That would be a nice, small, polish tweak.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions