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, […]