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

190
Views
Having error rendering html api data using webview?

I'm using this package called Webview. I'm not able to render my html api data called description in my code. Below I have attached api data image, code and output of the code. Please do help me out.

API Data Image for Description:

API DATA Image

API Data Image 2

Code:

import { WebView } from 'react-native-webview';

const DEVICE_WIDTH = Dimensions.get("window").width;
const { transferedData } = route.params;

return (
            <ScrollView style={[GlobalStyle.CustomScrollView]}>
                <HeaderBar3/>
                <Text style={[GlobalStyle.EventTitle]}> Event Details</Text>
                <View style={[GlobalStyle.EventDetailView]}>
                    <Image style={[GlobalStyle.EventDetailImage]} source={{uri: eventData.main_image}} resizeMode="contain"/>
                    <Text style={[GlobalStyle.EventSubtitle]}>Date:</Text>
                    <Text style={[GlobalStyle.EventDate]}>{date}</Text>
                    <Text style={[GlobalStyle.EventTime]}>{startTime}{'-'}{endTime}</Text>
                    <Text style={[GlobalStyle.EventSubtitle]}>Venue:</Text>
                    <Text style={[GlobalStyle.EventDescr]}>{eventData.venue}</Text>
                    <Text style={[GlobalStyle.EventSubtitle]}>Ticket:</Text>
                    <Text style={[GlobalStyle.EventTicketPrice]}>{eventData.promotional_price}</Text>
                    <Text style={[GlobalStyle.EventSubtitle]}>Description:</Text>
                    <View style={[GlobalStyle.EventDescr]}>
                    <WebView originWhitelist={['*']} source={{html: eventData.description}}/>
                    </View>
                </View>
               </ScrollView>
           );

Output of the code (No data in output):

enter image description here

about 4 years ago · Juan Pablo Isaza
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!