Questions tagged [react-native-image]

160 questions
1
vote
1 answer

React Native Image uri doesn't work

I tried to display an image from a local file, so I try to do this my container component seems getting the height and the width but the image doesn't…
Irvan
  • 165
  • 1
  • 13
1
vote
0 answers

React Native - Images become blank after app has been used for a while

I have a React Native app that displays a lot of images, for example it's fairly similar to Instagram in structure, with a timeline of image-heavy posts, multiple tabs containing user listings, current user's profile etc. My problem is that when…
Marky
  • 1,294
  • 1
  • 18
  • 40
1
vote
1 answer

Crop a image in react native

I'm referring to the image via require and I wanted to crop the icons from the sprite image. const sprite = require('./sprite.png') const crop = {left: 10, top: 50, width: 20, height: 40} export const cartLogo = sprite({crop}) // How do I apply…
nabeel
  • 1,181
  • 2
  • 10
  • 24
1
vote
1 answer

React Native Integration with Existing Apps and Images

I'm following the steps described on React native documentation https://facebook.github.io/react-native/docs/integration-with-existing-apps.html @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); …
Oximer
  • 548
  • 5
  • 19
0
votes
2 answers

React Native How can I change the App Icon

I am coding my first React Native app with Expo and I have it, now I want to change de App icon but I do not know how to do it, I already saw a lot of posts and watch videos but in all of them, people have two folders called Android and iOS in which…
Tomas
  • 13
  • 6
0
votes
0 answers

The moment my text got bigger, my image flows out of its container - React Native

enter image description here In my project I am building a Cart like component that will be rendered on the screen. Like the image given, the moment my text got larger, it pushes away my image and makes it overflow out of its parent container. I am…
0
votes
0 answers

Check if image URL is cached or not on cross-platform. React-Native

In the react-native component, I am trying to use default Image while offline. But online comes back, I should use image loaded from URL recently. But if this URL is cached already, react-native Image don't update image with new one that loaded…
0
votes
0 answers

How to create a image slider with zooming functionality with responsive in react native for Android

Currently I am using these 2 libraries import ImageZoom from 'react-native-image-pan-zoom'; import Carousel from 'react-native-snap-carousel'; ImageZoom for zooming the image and Carousel for sliding the images. but I cannot make it this as…
0
votes
1 answer

Set image url in state and use it then in react native

I am using react native for one of my project. I am setting state with an image url, and then I wanted it to use this state in Image, but its not working Image path: ../../assets/images/image.png setSplashImage(image); Then in Image tag:
pratteek shaurya
  • 850
  • 2
  • 12
  • 34
0
votes
0 answers

Why React Native has wrong aspect ratio when height isn't auto?

React Native doesn't display correctly when width: "100%". Well, it displays but with wrong aspect ratio, even if I have specified the correct one. It ignores aspectRatio property unless I put height: "auto". It looks like it happens only…
Object417
  • 111
  • 3
0
votes
0 answers

Circular orientation of multiple image in React native

How to do the following UI in React Native. Can any one suggest? Don't need any animation.
0
votes
1 answer

How to stop distortion of image in react native flatlist

I have made use of react native flatlist to display image but sometimes the image that I get from response will not be of perfect size thats why it will distort the image to contain, the first image is not of correct size but the image below that is…
0
votes
0 answers

What format returns S3 when using presigned URL to fetch data?

I got this value in body: ����JFIFHH��XExifMM*�i&���������"�� ���}!1AQa"q2���#B��R��$3br� %&'()*456789:CDEFGHIJSTUVWXYZcdefghijstuvwxyz��������������������������������������������������������������������������� And I don't know how to parse…
0
votes
2 answers

How to upload images on firebase storage using react native expo

I'm trying to upload images on firebase storage using my expo app. I went through their documentation and tried to implement using the docs. but whenever I upload I don't get any error but the image that appears on firebase is just a plain white…
0
votes
0 answers

Unable to Repeat background Image inside FlatList/ScrollView in React Native

I am a React Native Developer. And I was trying to repeat background image and the background image is in flatlist. I tried solutions like provided stretch in resizeMode but ending with very bad background image. Do you guys know any…