File tree 1 file changed +5
-6
lines changed
1 file changed +5
-6
lines changed Original file line number Diff line number Diff line change @@ -212,9 +212,10 @@ export function OfflineNoticeProvider(props: ProviderProps): Node {
212
212
// another app.)
213
213
214
214
if ( shouldShowUncertaintyNotice && ! haveAnnouncedUncertain . current ) {
215
- // TODO(react-native-68): Use announceForAccessibilityWithOptions to
216
- // queue this behind any in-progress announcements
217
- AccessibilityInfo . announceForAccessibility ( _ ( 'Zulip’s Internet connection is uncertain.' ) ) ;
215
+ AccessibilityInfo . announceForAccessibilityWithOptions (
216
+ _ ( 'Zulip’s Internet connection is uncertain.' ) ,
217
+ { queue : true } ,
218
+ ) ;
218
219
haveAnnouncedUncertain . current = true ;
219
220
}
220
221
@@ -226,9 +227,7 @@ export function OfflineNoticeProvider(props: ProviderProps): Node {
226
227
isOnline === true
227
228
&& ( haveAnnouncedOffline . current || haveAnnouncedUncertain . current )
228
229
) {
229
- // TODO(react-native-68): Use announceForAccessibilityWithOptions to
230
- // queue this behind any in-progress announcements
231
- AccessibilityInfo . announceForAccessibility ( _ ( 'Zulip is online.' ) ) ;
230
+ AccessibilityInfo . announceForAccessibilityWithOptions ( _ ( 'Zulip is online.' ) , { queue : true } ) ;
232
231
haveAnnouncedOffline . current = false ;
233
232
haveAnnouncedUncertain . current = false ;
234
233
}
You can’t perform that action at this time.
0 commit comments