Fix types
This commit is contained in:
@@ -1,13 +1,17 @@
|
||||
import React, {useCallback, useEffect, useState} from 'react'
|
||||
import {
|
||||
Image,
|
||||
ImageStyle,
|
||||
TouchableOpacity,
|
||||
TouchableWithoutFeedback,
|
||||
StyleSheet,
|
||||
View,
|
||||
Pressable,
|
||||
} from 'react-native'
|
||||
import {FontAwesomeIcon} from '@fortawesome/react-native-fontawesome'
|
||||
import {
|
||||
FontAwesomeIcon,
|
||||
FontAwesomeIconStyle,
|
||||
} from '@fortawesome/react-native-fontawesome'
|
||||
import {colors, s} from 'lib/styles'
|
||||
import ImageDefaultHeader from './ImageViewing/components/ImageDefaultHeader'
|
||||
import {Text} from '../util/text/Text'
|
||||
@@ -116,7 +120,7 @@ function LightboxInner({
|
||||
<Image
|
||||
accessibilityIgnoresInvertColors
|
||||
source={imgs[index]}
|
||||
style={styles.image}
|
||||
style={styles.image as ImageStyle}
|
||||
accessibilityLabel={imgs[index].alt}
|
||||
accessibilityHint=""
|
||||
/>
|
||||
@@ -129,7 +133,7 @@ function LightboxInner({
|
||||
accessibilityHint="">
|
||||
<FontAwesomeIcon
|
||||
icon="angle-left"
|
||||
style={styles.icon}
|
||||
style={styles.icon as FontAwesomeIconStyle}
|
||||
size={40}
|
||||
/>
|
||||
</TouchableOpacity>
|
||||
@@ -143,7 +147,7 @@ function LightboxInner({
|
||||
accessibilityHint="">
|
||||
<FontAwesomeIcon
|
||||
icon="angle-right"
|
||||
style={styles.icon}
|
||||
style={styles.icon as FontAwesomeIconStyle}
|
||||
size={40}
|
||||
/>
|
||||
</TouchableOpacity>
|
||||
|
||||
@@ -65,6 +65,7 @@ const styles = StyleSheet.create({
|
||||
borderRadius: 35,
|
||||
},
|
||||
outer: {
|
||||
// @ts-ignore web-only
|
||||
position: isWeb ? 'fixed' : 'absolute',
|
||||
zIndex: 1,
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user