fix unnecessary typecast
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user