react-native-image-picker

react-native-image-picker vs expo ImagePicker

ⅰ亾dé卋堺 提交于 2021-02-18 22:09:31
问题 I have tried many attempts to get react-native-image-picker up and working with my RN app. I am using Expo and VS Code and am not running the app with Xcode or Android Studio. There seems to be many options to getting the camera roll available in an app and I am not sure which is the best path to take. None seem to be working for me so I would like to pick the best path and focus on making that one route work. I am following the documentation: https://github.com/react-native-community/react

react-native-image-picker vs expo ImagePicker

[亡魂溺海] 提交于 2021-02-18 22:06:03
问题 I have tried many attempts to get react-native-image-picker up and working with my RN app. I am using Expo and VS Code and am not running the app with Xcode or Android Studio. There seems to be many options to getting the camera roll available in an app and I am not sure which is the best path to take. None seem to be working for me so I would like to pick the best path and focus on making that one route work. I am following the documentation: https://github.com/react-native-community/react

react-native-image-picker vs expo ImagePicker

青春壹個敷衍的年華 提交于 2021-02-18 22:05:23
问题 I have tried many attempts to get react-native-image-picker up and working with my RN app. I am using Expo and VS Code and am not running the app with Xcode or Android Studio. There seems to be many options to getting the camera roll available in an app and I am not sure which is the best path to take. None seem to be working for me so I would like to pick the best path and focus on making that one route work. I am following the documentation: https://github.com/react-native-community/react

multer, react native image picker image upload not working on iOS

北城以北 提交于 2021-01-28 00:46:16
问题 I am having great trouble in uploading an image via fetch and react-native-image-picker to multer and express js backend. Below is my react native code. try { const data = new FormData(); data.append('image', { name: photo.fileName, type: photo.type, uri: Platform.OS === 'android' ? photo.uri : photo.uri.replace('file://', ''), }); data.append('id', id) fetch(`${API}save-image`, { method: 'POST', body: data, }) .then(response => response.json()) .then(response => { console.log('upload succes'

request formData to API, gets “Network Error” in axios while uploading image

隐身守侯 提交于 2020-12-31 05:04:45
问题 I am making a POST request to server to upload an image and sending formdata using axios in react-native. i am getting "Network Error". i also try fetch but nothing work.using react native image picker libeary for select image.in postman api working fine formData.append('title', Title); formData.append('class_id', selectClass._id) formData.append('subject_id', checkSelected) formData.append('teacher_id', userId) formData.append('description', lecture); formData.append('type', 'image'); var

request formData to API, gets “Network Error” in axios while uploading image

这一生的挚爱 提交于 2020-12-31 05:04:08
问题 I am making a POST request to server to upload an image and sending formdata using axios in react-native. i am getting "Network Error". i also try fetch but nothing work.using react native image picker libeary for select image.in postman api working fine formData.append('title', Title); formData.append('class_id', selectClass._id) formData.append('subject_id', checkSelected) formData.append('teacher_id', userId) formData.append('description', lecture); formData.append('type', 'image'); var

request formData to API, gets “Network Error” in axios while uploading image

萝らか妹 提交于 2020-12-31 05:03:34
问题 I am making a POST request to server to upload an image and sending formdata using axios in react-native. i am getting "Network Error". i also try fetch but nothing work.using react native image picker libeary for select image.in postman api working fine formData.append('title', Title); formData.append('class_id', selectClass._id) formData.append('subject_id', checkSelected) formData.append('teacher_id', userId) formData.append('description', lecture); formData.append('type', 'image'); var

react-native-image-picker installation breaks my app

泪湿孤枕 提交于 2020-01-16 14:07:47
问题 Step 1: npm install react-native-image-picker ......app is still building fine..... Step 2: react-native link react-native-image picker ...app no longer compiles When I clean gradle I get error: " Could not set process working directory to 'C:\code\rn\xs\node_modules\react-native-image-picker\example\android': could not set current directory (errno 3) " When I try to rebuild in gradle I also get error: " Manifest merger failed : Attribute application@appComponentFactory value=(android.support