use ios live text interaction in alt text modal and image viewer (#2752)

zio/stable
Hailey 2024-02-06 19:13:28 -08:00 committed by GitHub
parent 2427329a84
commit 3a9497cc7e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 0 deletions

View File

@ -144,6 +144,7 @@ const ImageItem = ({imageSrc, onTap, onZoom, onRequestClose}: Props) => {
accessibilityLabel={imageSrc.alt} accessibilityLabel={imageSrc.alt}
accessibilityHint="" accessibilityHint=""
onLoad={() => setLoaded(true)} onLoad={() => setLoaded(true)}
enableLiveTextInteraction={!scaled}
/> />
</Animated.ScrollView> </Animated.ScrollView>
</GestureDetector> </GestureDetector>

View File

@ -105,6 +105,7 @@ export function Component({image}: Props) {
contentFit="contain" contentFit="contain"
accessible={true} accessible={true}
accessibilityIgnoresInvertColors accessibilityIgnoresInvertColors
enableLiveTextInteraction
/> />
</View> </View>
<TextInput <TextInput