mirror of https://git.lenooby09.tech/LeNooby09/social-app.git
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

use `showControls` to show/hide live text icon on ios (#2982)

authored by hailey.at and committed by

GitHub 9c5cd391 bdb63fff

+12 -2
+1
src/view/com/lightbox/ImageViewing/components/ImageItem/ImageItem.android.tsx
··· 37 37 onTap: () => void 38 38 onZoom: (isZoomed: boolean) => void 39 39 isScrollViewBeingDragged: boolean 40 + showControls: boolean 40 41 } 41 42 const ImageItem = ({ 42 43 imageSrc,
+9 -2
src/view/com/lightbox/ImageViewing/components/ImageItem/ImageItem.ios.tsx
··· 37 37 onTap: () => void 38 38 onZoom: (scaled: boolean) => void 39 39 isScrollViewBeingDragged: boolean 40 + showControls: boolean 40 41 } 41 42 42 43 const AnimatedImage = Animated.createAnimatedComponent(Image) 43 44 44 - const ImageItem = ({imageSrc, onTap, onZoom, onRequestClose}: Props) => { 45 + const ImageItem = ({ 46 + imageSrc, 47 + onTap, 48 + onZoom, 49 + onRequestClose, 50 + showControls, 51 + }: Props) => { 45 52 const scrollViewRef = useAnimatedRef<Animated.ScrollView>() 46 53 const translationY = useSharedValue(0) 47 54 const [loaded, setLoaded] = useState(false) ··· 144 151 accessibilityLabel={imageSrc.alt} 145 152 accessibilityHint="" 146 153 onLoad={() => setLoaded(true)} 147 - enableLiveTextInteraction={!scaled} 154 + enableLiveTextInteraction={showControls && !scaled} 148 155 /> 149 156 </Animated.ScrollView> 150 157 </GestureDetector>
+1
src/view/com/lightbox/ImageViewing/components/ImageItem/ImageItem.tsx
··· 10 10 onTap: () => void 11 11 onZoom: (scaled: boolean) => void 12 12 isScrollViewBeingDragged: boolean 13 + showControls: boolean 13 14 } 14 15 15 16 const ImageItem = (_props: Props) => {
+1
src/view/com/lightbox/ImageViewing/index.tsx
··· 122 122 imageSrc={imageSrc} 123 123 onRequestClose={onRequestClose} 124 124 isScrollViewBeingDragged={isDragging} 125 + showControls={showControls} 125 126 /> 126 127 </View> 127 128 ))}