All Questions
Tagged with react-native-image-picker javascript
46 questions
12
votes
5
answers
27k
views
NativeFirebaseError: [storage/unauthorized] User is not authorized to perform the desired action
I'm having problems uploading an image to Firebase Storage. I'm using React Native's @react-native-firebase/storage and the installation and connectivity seem to be fine because I'm able to reference ...
8
votes
8
answers
16k
views
Cannot read property 'launchImageLibrary' of undefined react-native-image-picker
My feature offers a small image icon as a touchable to upload or take a picture, using "react-native-image-picker": "^3.3.2".
I'm getting error: Cannot read property '...
4
votes
2
answers
3k
views
Firebase Storage: string does not match format base64: invalid character found. Only when debug is off
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 ...
4
votes
0
answers
1k
views
react-native-fs library is not moving or copying files - weird results
npmPackages:
@react-native-community/cli: ^4.13.0 => 4.13.0
react: 16.13.1 => 16.13.1
react-native: 0.63.3 => 0.63.3
react-native-windows: Not Found
react-native-fs: ^2.16....
4
votes
2
answers
5k
views
Getting "Illegal callback invocation from native module. This callback type only permits a single invocation from native code"
I am using react-native-image picker and react-native-image-crop picker libraries in two class.
One is launching the library image (react-native-image picker) and other one package opens the cropping ...
3
votes
3
answers
2k
views
React Native: Image not displaying with dynamic/local URI
so I'm trying to display an Image with a dynamic uri/path (at initialization it displays a placeholder image, and then later changes) like so:
<Image source={this.state.pickedImage == null? ...
3
votes
2
answers
2k
views
Expo-image-picker: "Unhandled promise rejection: Error: Failed to write data to a file"
I am building a react native multiuser app and I am trying to set up the user profile page. I am trying to make a user profile picture that a user can upload from their image library. I manage to open ...
2
votes
1
answer
1k
views
React Native Image Upload File Extension Error
I am trying to upload an image to Django backend server with React Native.
const addPostHandle = () => {
const formData = new FormData()
formData.append("image", {
name: &...
2
votes
3
answers
10k
views
Images put to storage are saved as 'octet-stream' rather than image/jpeg (firebase and ReactNative)
I am using the camera(react-native-image-Picker) to take a pick and save it to storage.
Here is how I am doing it.
const saveImage = async () => {
const id = firebase.firestore().collection('...
2
votes
2
answers
2k
views
How to await for the react native Image Picker callback function response?
I want to make a function that uploads a photo picked from the react-native-image-picker to firestore, and then returns the value of the URL of the uploaded image. The photo uploads succesfully and I ...
2
votes
1
answer
4k
views
React-native upload Image as FormData
Need to Post image as formData in React-Native
The Form Data:
------WebKitFormBoundary4df7ukBk3N8GDzOl
Content-Disposition: form-data; name="selfieImage"; filename="600px-Google_Drive_logo.png"
...
2
votes
3
answers
5k
views
React Native: Console Warning Possible Unhandled Promise Rejection (id:0): TypeError: Cannot read property 'uri' of null
I am following this tutorial on uploading photos to Firebase in React Native and have it all set up using 'react-native-image-picker' and 'launchImageLibrary' (instead of the 'showImagePicker' in the ...
2
votes
0
answers
739
views
Not able to get Metadata using react-native-media-meta library for ios
I want to get media file (video/audio) file metadata to get file duration for that I'm using "react-native-media-meta" library and it is working perfectly on Android. But on iOS, it is not ...
2
votes
0
answers
683
views
React Native - iOS App stuck after image selection and Image doesn't display on imageview
I am new to React Native and I am trying to show image from Gallery in my app. After picking the image from Gallery, image doesn't display on app and the button (i.e., TouchOpacity) and back ...
2
votes
0
answers
834
views
React native Get index of TextInput from multiple Photos
Multiple photos from the device camera are being selected and passed to a flatlist component, and i have textinput at the bottom which lets text be added underneath each photo. I want to get the index ...