react-native-image-picker

react-native-image-picker installation breaks my app

做~自己de王妃 提交于 2020-01-16 14:05:06
问题 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

After Image Uploading, image uri is null for iOS alone in React Native

我的梦境 提交于 2020-01-16 07:40:07
问题 In my React Native app, I have added an functionality to upload multiple images, which will be stored as image[] including uri. This works perfectly for Android. But for iOS, the image[] is created also contains some data but it is entirely different from android. And for uri null value only present. Please help me to solve this issue.! ( Note: Android should not get affected by change.) Thanks in advance.! Images Array: (For Android) [ { 'file': 'content://media/external/images/media/30993',

RN 使用第三方组件之react-native-image-picker(拍照/从相册获取图片)

☆樱花仙子☆ 提交于 2019-12-09 10:03:10
首先给个github地址:https://github.com/react-community/react-native-image-picker 英文不行的看下面这个笔记 该插件可以同时给iOS和Android两个平台下使用,但是需要配置下各自平台下的文件 1. 首先,安装下该插件: npm install react- native -image-picker @latest --save 2. 先别link,先添加进来该库之后 再link. 下面对于各自平台进行配置即可. iOS: 手动添加库 : In the XCode's "Project navigator", right click on your project's Libraries folder ➜ Add Files to <...> Go to node_modules ➜ react-native-image-picker ➜ ios ➜ select RNImagePicker.xcodeproj  => 打开Xcode打开项目,点击根目录,右键选择 Add Files to 'XXX',选中项目中的该路径下的文件即可: node_modules ➜ react-native-image-picker ➜ ios ➜ select RNImagePicker.xcodeproj OK,添加进来之后

react native 之 react-native-image-picke的详细使用图解

谁说我不能喝 提交于 2019-12-09 10:02:41
最近需要在react native项目中集成相机和相册的功能,于是在网上找了一个好用的第三方插件: react-native-image-picke . 该插件可以同时给iOS和Android两个平台下使用,但是需要配置下各自平台下的文件, github 上有详细的文字说明,但是本人对于文字向来无感,所以特地图解记录下配置说明和用法. 1. 首先,安装下该插件: npm install react-native-image-picker@latest --save 2. 先别link,先添加进来该库之后 再link. 下面对于各自平台进行配置即可. iOS: In the XCode's "Project navigator", right click on your project's Libraries folder ➜ Add Files to <...> Go to node_modules ➜ react-native-image-picker ➜ ios ➜ select RNImagePicker.xcodeproj  => 打开Xcode打开项目,点击根目录,右键选择 Add Files to 'XXX',选中项目中的该路径下的文件即可: node_modules ➜ react-native-image-picker ➜ ios ➜ select

Firebase Storage: string does not match format base64: invalid character found. Only when debug is off

↘锁芯ラ 提交于 2019-11-28 12:44:32
I'm trying to upload an image file to firebase storage, save the download URL, and load it after the upload is completed. When I run the app with debug js remotely on it works fine. When I turn off debug mode it stops working with the invalid format exception. The same happens when I run in a real device (both iOS and Android) The base64 response data from React Native Image Picker seems to be correct Here's my code ... import * as ImagePicker from 'react-native-image-picker'; //0.26.10 import firebase from 'firebase'; //4.9.1 ... handleImagePicker = () => { const { me } = this.props; const

Firebase Storage: string does not match format base64: invalid character found. Only when debug is off

自作多情 提交于 2019-11-27 07:15:38
问题 I'm trying to upload an image file to firebase storage, save the download URL, and load it after the upload is completed. When I run the app with debug js remotely on it works fine. When I turn off debug mode it stops working with the invalid format exception. The same happens when I run in a real device (both iOS and Android) The base64 response data from React Native Image Picker seems to be correct Here's my code ... import * as ImagePicker from 'react-native-image-picker'; //0.26.10