diff --git a/mobile/App.js b/mobile/App.js index cf70493..4dd3f21 100644 --- a/mobile/App.js +++ b/mobile/App.js @@ -2,7 +2,7 @@ // browser behind it keeps its tabs of WebViews, address bar, and the shared // suggestion engine from core/. import { useCallback, useEffect, useMemo, useRef, useState } from "react"; -import { ActivityIndicator, BackHandler, Keyboard, PanResponder, Platform, Pressable, Text, TextInput, View, useWindowDimensions } from "react-native"; +import { AccessibilityInfo, ActivityIndicator, BackHandler, Keyboard, PanResponder, Platform, Pressable, Text, TextInput, View, useWindowDimensions } from "react-native"; import { StatusBar } from "expo-status-bar"; import { SafeAreaProvider, SafeAreaView } from "react-native-safe-area-context"; @@ -217,6 +217,7 @@ function Browser({ services }) { // recorded as a capture card. No screen change; a note with Undo shows. const showToast = (t) => { clearTimeout(toastTimer.current); + AccessibilityInfo.announceForAccessibility?.(t.text); // VoiceOver reads the note; TalkBack uses the live region setToast(t); toastTimer.current = setTimeout(() => setToast(null), 6000); }; @@ -397,8 +398,8 @@ function Browser({ services }) { {/* Address bar, with suggestions from history and Wikipedia while typing */} -