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 React from 'react'
import { import {
type ImageStyle,
Keyboard, Keyboard,
type LayoutChangeEvent, type LayoutChangeEvent,
StyleSheet, StyleSheet,
@@ -125,7 +124,7 @@ type GalleryItemProps = {
image: ComposerImage image: ComposerImage
altTextControlStyle?: ViewStyle altTextControlStyle?: ViewStyle
imageControlsStyle?: ViewStyle imageControlsStyle?: ViewStyle
imageStyle?: ImageStyle imageStyle?: ViewStyle
onChange: (next: ComposerImage) => void onChange: (next: ComposerImage) => void
onRemove: () => void onRemove: () => void
} }
@@ -161,7 +160,7 @@ const GalleryItem = ({
return ( return (
<View <View
style={imageStyle as ViewStyle} style={imageStyle}
// Fixes ALT and icons appearing with half opacity when the post is inactive // Fixes ALT and icons appearing with half opacity when the post is inactive
renderToHardwareTextureAndroid> renderToHardwareTextureAndroid>
<TouchableOpacity <TouchableOpacity