Skip to main content

All 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 ...
sigmapi13's user avatar
  • 2,563
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 '...
lsilva's user avatar
  • 197
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 ...
soutot's user avatar
  • 3,671
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....
DerpyNerd's user avatar
  • 4,823
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 ...
sejn's user avatar
  • 2,744
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? ...
SSBakh's user avatar
  • 1,532
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 ...
Itay Lador's user avatar
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: &...
altF4's user avatar
  • 319
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('...
Byusa's user avatar
  • 3,097
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 ...
Andrés Moreno's user avatar
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" ...
WilTree's user avatar
  • 140
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 ...
Ollie's user avatar
  • 107
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 ...
Naresh Pawar's user avatar
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 ...
Gautam Shrivastav's user avatar
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 ...
endlessCode's user avatar
  • 1,405

15 30 50 per page