Questions tagged [react-native-image]
160 questions
9
votes
3 answers
Is it possible to get the binary data from an image in React-Native?
I'm using react-native-camera and I'm having trouble getting the image as binary data in react-native. I need this to be able to upload images to our backend. The only thing I manage to get is uri's to the image and then maybe sending that as…

nullforlife
- 1,354
- 2
- 18
- 30
8
votes
2 answers
React Native Image resizeMode vs resizeMethod
I'm currently using RN 41.2 and I have questions about resizing images from a url. The url files can get quite large, usually around 2000x2000 and I want to display them way smaller probably around 25x25.
Is there an equivalent iOS Image prop for…

Austin Cline
- 81
- 1
- 4
7
votes
2 answers
Image not showing when mapping an array and render an image
I have this array of images in my project.
this.state.destinations = [{
"destinationId": "001",
"img": "../../assets/img/destinations/001.png"
},
{
"destinationId": "002",
"img": "../../assets/img/destinations/002.png"
},
{
…

Paulo Henrique Junior
- 179
- 1
- 4
- 10
7
votes
2 answers
Crop image with react-native
Hello World,
I trying to crop an image like explain on the React-native Doc
But it's doesn't work the image is not…

G Clovs
- 2,442
- 3
- 19
- 24
6
votes
2 answers
React Native is there an attribute equals to alt on image component
Coming from reactjs i was expecting "alt" attribute on the image component that will show text in case the image could not be loaded.
I read the documentation here and the closest thing I found is the on error event.
Is there an attribute equal to…

yonBav
- 1,695
- 2
- 17
- 31
4
votes
3 answers
How to display specific part of image in square
I have problem with Image component in react native. I would like to display specific part of image in some square. F.e:
Let's say, I have image in resolution: 1280x720
private someImage = require('../Assets/someImage.jpg');
I would like to display…

Jaroslaw K.
- 5,224
- 2
- 39
- 65
4
votes
1 answer
React native delete multiple items from state array
I have a directory which stores images taken using the camera. For saving images I am using RNFS. I am using react-native-photo-browser.
The gallery itself doesn't have any options to delete the items from the gallery. So I am working to achieve…

Jothi Kannan
- 3,320
- 6
- 40
- 77
4
votes
1 answer
React Native App Transport Security has blocked
I just installed react-native-image-crop.
When I tried to make a photo on an actual iPhone, I received a quite strange error. 'App Transport Security has blocked a cleartext HTTP (http://) resource load since it is insecure. Temporary exceptions can…

Istvan Orban
- 1,607
- 3
- 18
- 34
4
votes
2 answers
React Native Image absolute positioning
I am trying to position two images at the bottom border, each side with the 50% width, so as to properly scale to any device size. But I can't seem to get any absolute positioning to behave in a reproducible way.
I've made an example Snack:…

localhost
- 845
- 3
- 14
- 32
3
votes
2 answers
React-Native using state in image require
Why I can´t use states in my image
I would like to change the image, getting it from an array when I click in the button a raffle function changes the image state, everything is…

Vitor Augusto Batista Rocha
- 43
- 1
- 6
3
votes
2 answers
How to show Video using react-native-image-picker
I'm using react-native-ImagePicker for selecting video's from my phone . so i used the below code ,
const options = {
title: 'Video Picker',
mediaType: 'video',
storageOptions:{
skipBackup:true,
…

Beckham_Vinoth
- 701
- 2
- 13
- 39
3
votes
2 answers
React Native - Can't place icon on top of image
I'm trying to place an icon over an image, but all it's doing is pushing the image down the page.
Here's what it currently looks like:
I'm trying to place the blue back arrow on top of that image as you can see.
Here's what my markup looks…

Thomas
- 2,356
- 7
- 23
- 59
3
votes
2 answers
Image React-native not working
Iam trying to do this:
but returns me this error: "Unknown named module"

Luiz Fernando Sousa Camargo
- 325
- 1
- 4
- 17
3
votes
2 answers
React Native Image doesn't change
when I open the profile tab it loads an image (profile image) from an URL and if a user wants to change his image he can but when he does the image is changed on the Server but on the App it doesn't change but if I refresh the App it does change.…

Brunaine
- 1,178
- 2
- 16
- 24
2
votes
0 answers
Some remote image is not showing in react native iOS but showing in android
Some remote image is not showing in react native iOS. But the same image is showing in android.
This is not happening for all images.
Not showing: https://d1ldvf68ux039x.cloudfront.net/thumbs/frames/audio/2211/71371/122x92_q95.jpg
Showing:…

Md. Robi Ullah
- 1,703
- 3
- 20
- 32