corrected mediaType; retaining activeOpacity to 1

This commit is contained in:
Nouman Tahir 2021-03-23 00:15:07 +05:00
parent dedc8cb409
commit f7643a6a31
2 changed files with 7 additions and 2 deletions

View File

@ -100,7 +100,11 @@ const PostCardView = ({
</View>
</View>
<View style={styles.postBodyWrapper}>
<TouchableOpacity style={styles.hiddenImages} onPress={_handleOnContentPress}>
<TouchableOpacity
activeOpacity={1}
style={styles.hiddenImages}
onPress={_handleOnContentPress}
>
{!isHideImage && (
<FastImage
source={{ uri: images.image }}

View File

@ -101,7 +101,7 @@ class EditorContainer extends Component {
ImagePicker.openPicker({
includeBase64: true,
multiple: true,
mediaType: 'image',
mediaType: 'photo',
smartAlbums: ['UserLibrary', 'Favorites', 'PhotoStream', 'Panoramas', 'Bursts'],
})
.then((images) => {
@ -115,6 +115,7 @@ class EditorContainer extends Component {
_handleOpenCamera = () => {
ImagePicker.openCamera({
includeBase64: true,
mediaType: 'photo',
})
.then((image) => {
this._handleMediaOnSelected(image);