Skip to content

Commit

Permalink
fix: add control to prevent image duplication for android
Browse files Browse the repository at this point in the history
- added platform control to the `Image` component to prevent the `TalkBack` feature used in
  Android from saying `bild` twice at the end of any image

SBB-50
  • Loading branch information
ardasnturk committed Jul 25, 2023
1 parent 38a3de6 commit 3adda74
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/Image.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { ActivityIndicator, StyleSheet, View } from 'react-native';
import { Image as RNEImage } from 'react-native-elements';
import { CacheManager } from 'react-native-expo-image-cache';

import { colors, consts } from '../config';
import { colors, consts, device } from '../config';
import { imageHeight, imageWidth } from '../helpers';
import { useInterval } from '../hooks/TimeHooks';
import { SettingsContext } from '../SettingsProvider';
Expand Down Expand Up @@ -104,7 +104,7 @@ export const Image = ({
placeholderStyle={styles.placeholderStyle}
accessible={!!sourceProp?.captionText}
accessibilityLabel={`${sourceProp.captionText ? sourceProp.captionText : ''} ${
consts.a11yLabel.image
device.platform === 'ios' && consts.a11yLabel.image
}`}
resizeMode={resizeMode}
borderRadius={borderRadius}
Expand Down

0 comments on commit 3adda74

Please sign in to comment.