Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

291
Views
React Native: Images URI are not working on release apk

I'm using react-native-paper to develop my application's UI.

I want to show an image in the Card component of react-native-paper, using Card.Cover.

The image is shown normally when I use the debug apk, but it doesn't load when I use the release apk.

Below is my component and the image I'm trying to load:


const image = {
    name: 'Some Test Image', 
    uri: 'http://www.memoriarondonense.com.br/public/timthumb.php?w=780&src=http://www.memoriarondonense.com.br/public/upload/calendario-historico/7e6c713365c50ec0fd6bfada96a1f034.jpg&m=img/65.png'
};

<Card style={{margin: '2%'}}>
    <Card.Cover
        source={image.uri.includes('.pdf') ? require('../../../../assets/pdf-logo.png') : {uri: image.uri}}
    />
</Card>
about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

Apparently the problem is that the release apk doesn't load images with HTTP, I changed the protocol to HTTPS and it worked correctly.

about 4 years ago · Juan Pablo Isaza Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!