Questions tagged [expo-image-picker]

22 questions
3
votes
1 answer

RangeError Failed to construct 'Response': The status provided (0) is outside the range [200, 599]. Firebase storage and expo image picker

I get the error RangeError Failed to construct 'Response': The status provided (0) is outside the range [200, 599]. This is the code for (let i = 0; i < images.length; i++) { const fileName = Date.now() + i; const storageRef =…
2
votes
2 answers

How can I fix the Execution failed for task ':expo-image-picker:compileReleaseKotlin' error in react-native Expo android build?

Execution failed for task ':expo-image-picker:compileReleaseKotlin'. I am a beginner in react-native and it is my first project which I'm trying to build. But on building i receive following errors: FAILURE: Build completed with 2 failures. [stderr]…
emmarrat
  • 21
  • 2
1
vote
0 answers

Not responding Custom Actions from Gifted chat

I am not to familiar with react-native and I have tried to get help from my mentor, anyhow he is not familiar with the topic (react-native, Gifted chat). So I have this two components: ChatScreen and Custom Actions. Custom Actions should render…
1
vote
1 answer

How to resize or compress the image to the minimum before posting by form-data body in react native to avoid error 413?

I use 'expo-image-picker' library to get image. let result = await ImagePicker.launchImageLibraryAsync({ mediaTypes: ImagePicker.MediaTypeOptions.Images, aspect: [3, 3], quality: 0, …
1
vote
2 answers

expo-image-picker android error with content:// uri

Installed expo-image-picker, calling launchImageLibraryAsync. This works completely fine on Emulator. On a real android device (Samsung A3, API 24), and picking images from the Library, I sometimes get an error Uri lacks 'file' scheme:…
Tobin
  • 1,698
  • 15
  • 24
0
votes
1 answer

How to delete photo using Expo Image Picker?

I have a project with Expo Image Picker. When taking a photo, I save the path to my database, and the photo is recorded in some local cache of the program. I have a function to delete a row from the database, but I would like to delete the photo…
martin
  • 29
  • 5
0
votes
0 answers

Upload Image from Expo to NestJS Server as Binary

I have an Expo Client trying to upload images from iOS and Android to a NestJS Server. I get a 400 error that File is required, and when I try to log the body on the server it's empty. My client code is try { const token = await…
0
votes
0 answers

Why form submit not working on react native web?

This code is properly working on mobile expo go app and it able to upload file and form data to server using expo image picker but the same code not working on react native web const CompleteRegisterScreen = ({ navigation,route }) => { const { id…
0
votes
0 answers

How can I convert Base 64 data or URI data of expo-image-picker to binary file?

I am using expo-image-picker in my React-native app. I want to convert the output of expo-image-picker to binary file but I can't. Can anyone please help me out, I am stuck in this problem for days. Thanks in advance! I tried to use atob/btoa, but…
0
votes
0 answers

Problem with imagePicker in android, react native app with expo go

recently my app has started showing a new problem. while trying to access the camera, expo launches an unhandled exception: Call to function 'ExponentImagePicker.launchCameraAsync' has been rejected. → Caused by: User rejected permissions meanwhile,…
Oryan1410
  • 1
  • 1
0
votes
1 answer

s3 bucket + expo image picker results in uploading only image name, not the image, NoSuchUpload error

I'm using expo, expo-image-picker, amplify with s3 to store images. Whenever I try to upload the image, that happens almost successfully - I see a new file on the bucket. But all of the files are 101-170 bytes size, so they don't have any real image…
0
votes
0 answers

How to detox a selected image from an expo-image-picker with React native expo

I'm new to detox testing, and I'm using detox tests in my project created with React Native Expo. In my registration form, I have a visual selection field where I'm using the expo-image-picker library. While writing detox tests, I managed to open…
0
votes
1 answer

Undefined Values Returning from Expo Image Picker

I am trying to use expo-image-picker library to get access to the gallery and choose an image from the gallery and display it on the screen. But when I choose a picture, I console.log the result and it turns out that everything in the result is…
0
votes
0 answers

How to save and display an image from expo-image-picker that doesn't rely on uri

This has been driving me crazy for several days now. I can display an image from a URI from expo-image-picker. But the image will not display on anyone else's device. How do I save the image (I have a nodejs backend with express server and…
JohnBradens
  • 119
  • 8
0
votes
1 answer

Displaying image from expo-image-picker after converting to blob

I'm making a simple chat app where users can submit a message, and optionally submit an image, using expo-image-picker. That part works, but because the uri points to a local file, I want to convert it to a blob so I can store the information in the…
JohnBradens
  • 119
  • 8
1
2