Revert "fix unnecessary typecast"

This reverts commit 3a8bcc9277.
This commit is contained in:
Samuel Newman
2025-07-31 15:23:24 +02:00
parent 3a8bcc9277
commit 39faeaf742
+3 -2
View File
@@ -1,5 +1,6 @@
import React from 'react' import React from 'react'
import { import {
type ImageStyle,
Keyboard, Keyboard,
type LayoutChangeEvent, type LayoutChangeEvent,
StyleSheet, StyleSheet,
@@ -124,7 +125,7 @@ type GalleryItemProps = {
image: ComposerImage image: ComposerImage
altTextControlStyle?: ViewStyle altTextControlStyle?: ViewStyle
imageControlsStyle?: ViewStyle imageControlsStyle?: ViewStyle
imageStyle?: ViewStyle imageStyle?: ImageStyle
onChange: (next: ComposerImage) => void onChange: (next: ComposerImage) => void
onRemove: () => void onRemove: () => void
} }
@@ -160,7 +161,7 @@ const GalleryItem = ({
return ( return (
<View <View
style={imageStyle} style={imageStyle as ViewStyle}
// 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