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

221
Views
How to add pagination in react native from api

This is my API and I want to call this API in my react native code and this should be in pagination

"Pagination": {
    "showing": "Showing 1-10 of 61  results",
    "data": [
        {
            "name": "PREV",
            "onclick": 1,
            "value": 0,
            "disabled": " disabled ",
            "active": " "
        },
        {
            "name": "1",
            "onclick": 0,
            "value": "1",
            "disabled": " disabled ",
            "active": " active "
        },
        {
            "name": 2,
            "onclick": 1,
            "value": 2,
            "disabled": " ",
            "active": " "
        },
        {
            "name": 3,
            "onclick": 1,
            "value": 3,
            "disabled": " ",
            "active": " "
        },
        {
            "name": "NEXT",
            "onclick": 1,
            "value": 2,
            "disabled": " ",
            "active": " "
        }
    ]
about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

you can use FlatList and passing a callback method to onEndReached you can fetch paginated data. Ref. https://reactnative.dev/docs/flatlist#onendreachedthreshold

ex: https://snack.expo.dev/@mkpeak/react-native-flatlist-pagination-to-load-more-data-dynamically---infinite-list

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!