fix unnecessary typecast

This commit is contained in:
Samuel Newman
2025-07-31 15:22:08 +02:00
parent 454ec467bd
commit 3a8bcc9277
+2 -3
View File
@@ -1,6 +1,5 @@
import React from 'react'
import {
type ImageStyle,
Keyboard,
type LayoutChangeEvent,
StyleSheet,
@@ -125,7 +124,7 @@ type GalleryItemProps = {
image: ComposerImage
altTextControlStyle?: ViewStyle
imageControlsStyle?: ViewStyle
imageStyle?: ImageStyle
imageStyle?: ViewStyle
onChange: (next: ComposerImage) => void
onRemove: () => void
}
@@ -161,7 +160,7 @@ const GalleryItem = ({
return (
<View
style={imageStyle as ViewStyle}
style={imageStyle}
// Fixes ALT and icons appearing with half opacity when the post is inactive
renderToHardwareTextureAndroid>
<TouchableOpacity