thumbnail fix and touchable opacity change

This commit is contained in:
feruz 2021-01-31 13:54:59 +02:00
parent d71f4eb285
commit c6ef607175
4 changed files with 8 additions and 4 deletions

View File

@ -1,9 +1,10 @@
import React, { useCallback, useMemo, useRef, forwardRef, useImperativeHandle } from 'react';
import { View, Text, TouchableOpacity } from 'react-native';
import { View, Text } from 'react-native';
import { useDispatch } from 'react-redux';
import { useIntl } from 'react-intl';
import {
BottomSheetModal,
TouchableOpacity,
BottomSheetModalProvider,
BottomSheetFlatList,
} from '@gorhom/bottom-sheet';
@ -53,7 +54,7 @@ const AccountsBottomSheet = forwardRef(
<Text style={styles.name}>{`@${item.username}`}</Text>
</View>
</View>
{currentAccount.name === item.name && (
{currentAccount.name === item.username && (
<Icon iconType="AntDesign" name="checkcircle" style={styles.checkIcon} size={24} />
)}
</TouchableOpacity>

View File

@ -1,5 +1,6 @@
import React, { Fragment } from 'react';
import { TouchableWithoutFeedback, Text, View } from 'react-native';
import { Text, View, TouchableWithoutFeedback } from 'react-native';
//import { TouchableWithoutFeedback } from '@gorhom/bottom-sheet';
import styles from './textButtonStyles';

View File

@ -1,6 +1,6 @@
import React, { Component, useState, useEffect } from 'react';
import get from 'lodash/get';
import { TouchableOpacity, Text, View, Dimensions } from 'react-native';
import { TouchableOpacity, Text, View, Dimensions, PixelRatio } from 'react-native';
import { injectIntl } from 'react-intl';
import ImageSize from 'react-native-image-size';

View File

@ -47,12 +47,14 @@ class ProgressiveImage extends React.Component {
style={[style, { opacity: this.thumbnailAnimated }]}
onLoad={this.handleThumbnailLoad}
blurRadius={1}
resizeMode={FastImage.resizeMode.cover}
/>
<AnimatedFastImage
{...props}
source={source}
style={[styles.imageOverlay, { opacity: this.imageAnimated }, style]}
onLoad={this.onImageLoad}
resizeMode={FastImage.resizeMode.cover}
/>
</View>
);