Categories
Mastering Development

HOW TO GET THE FULL SIZE PHOTO FROM GALLERY USING EXPO IMAGE PICKER?

I’m using image picker expo to access my gallery or photos, I want to get the full photo not cropped to be displayed on image here is my code: const image = await ImagePicker.launchImageLibraryAsync({ mediaTypes: ImagePicker.MediaTypeOptions.All, allowsEditing: true, aspect: [1, 1], quality: 1, }); if (!image.cancelled) { setPickedImage(image.uri); setModalVisible(false); } }; [![enter image description here][1]][1] […]

Categories
Mastering Development

REACT-NATIVE: Images appear when uploaded but stop appearing at one point

I’m coding a React-Native app with expo where users can upload pictures from their camera roll. I successfully retrieve the uri of the image and it appears on the screen, it even appears when I call it on different pages from the database. The problem is that when I log out for a while and […]

Categories
Mastering Development

_this2.renderPrediction is not a function

I’m new in React Native and I don’t understand what is my error and where to locate it. basically I’m trying to analyse and image to predict what it is. I’m using tensorflow and the tutorial I found at this web page https://heartbeat.fritz.ai/image-classification-on-react-native-with-tensorflow-js-and-mobilenet-48a39185717c. can someone help me here is my code : import React from […]

Categories
Mastering Development

React Native Image upload to firebase: Possible Unhandled Promise Rejection (id:0):TypeError:undefined is not an object (evaluating this.setState)

I am new to react native. My objective is to 1.Registration screen 2.User selects a button to take picture/ select a picture from the phone 3.I want this selected picture to be stored in firebase storage The image is not getting stored Possible unhandled Promise Rejection (id:0):TypeError:undefined is not an object (evaluating “this.setState({ image:result.uri}).then import […]

Categories
Development Google React

How to upload multiple images using expo-image-picker in react-native

Hello everyone i am learning expo-image-picker in react-native and everything fine if i upload one image, but i want to upload multiple images .Did any one know how to do it . this is the code which i tried check it once _pickImage = async () => { let result = await ImagePicker.launchImageLibraryAsync({ mediaTypes: ImagePicker.MediaTypeOptions.All, […]