• Jobs
  • About Us
  • professionals
    • Home
    • Jobs
    • Courses and challenges
    • Questions
    • Teachers
  • business
    • Home
    • Post vacancy
    • Our process
    • Pricing
    • Assessments
    • Payroll
    • Blog
    • Sales
    • Salary Calculator

0

136
Views
How to implement this view with pagination using react native snap carousel?

Hi everyone need help with this package react-native-snap-carousel. I want to implement it just like this https://i.pinimg.com/originals/d5/6a/06/d56a06bffbd19494fc8596b984789e29.gif

Code used for Carousel

    _renderItem=({ item, index})=>{
        return  (

            <View style={{backgroundColor:'#fff',height:'80%',margin:'3%',elevation:2,justifyContent:'center',alignItems:'center'}}>
                <Text style={{fontFamily:'Poppins-Regular',fontSize:15,fontWeight:'300',color:'#444'}}>{item}</Text>
            </View>
        );
    }
   <Carousel
       data={this.state.packageList}
       renderItem={this._renderItem}
    /> 

How can I pass this array of objects as data to the Carousel component,

{"packageList": [{"amount": 300, "characterization": "A", "description": "Entry level package.", "durationType": "M", "isFree": "N", "name": "Basic Package", "packageId": 1, "status": "A", "type": 4}, {"amount": 500, "characterization": "A", "description": "Premium package allows real-time displaying of the services and caters larger client base. Valid for 3 months ", "durationType": "TM","isFree": "N", "name": "Premium", "packageId": 2, "status": "A", "type": 4}, {"amount": 700, "characterization": "A","description": "Provides larger client base and features.", "durationType": "SM","isFree": "N", "name": "Extra Premium   ","packageId": 3,"status": "A","type": 4}]}
almost 3 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 Our process Sales
Legal
Terms and conditions Privacy policy
© 2025 PeakU Inc. All Rights Reserved.

Andres GPT

Recommend me some offers
I have an error