mirror of
https://github.com/ecency/ecency-mobile.git
synced 2024-12-24 05:42:33 +03:00
thumbnail fix and touchable opacity change
This commit is contained in:
parent
d71f4eb285
commit
c6ef607175
@ -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>
|
||||
|
@ -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';
|
||||
|
||||
|
@ -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';
|
||||
|
||||
|
@ -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>
|
||||
);
|
||||
|
Loading…
Reference in New Issue
Block a user