Skip to content

Commit fa7aeef

Browse files
fix: accessible prop on view (#11)
1 parent bec3d61 commit fa7aeef

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/index.tsx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -168,6 +168,7 @@ function FastImageBase({
168168
// eslint-disable-next-line no-shadow
169169
resizeMode = 'cover',
170170
forwardedRef,
171+
accessible = false,
171172
...props
172173
}: FastImageProps & { forwardedRef: React.Ref<any> }) {
173174
if (fallback) {
@@ -176,7 +177,7 @@ function FastImageBase({
176177
const resolvedSource = Image.resolveAssetSource(cleanedSource)
177178

178179
return (
179-
<View style={[styles.imageContainer, style]} ref={forwardedRef}>
180+
<View style={[styles.imageContainer, style]} ref={forwardedRef} accessible>
180181
<Image
181182
{...props}
182183
style={[StyleSheet.absoluteFill, { tintColor }]}
@@ -198,7 +199,7 @@ function FastImageBase({
198199
const resolvedDefaultSource = resolveDefaultSource(defaultSource)
199200

200201
return (
201-
<View style={[styles.imageContainer, style]} ref={forwardedRef}>
202+
<View style={[styles.imageContainer, style]} ref={forwardedRef} accessible>
202203
<FastImageView
203204
{...props}
204205
tintColor={tintColor}

0 commit comments

Comments
 (0)