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

166
Views
How to show flatlist result on screen by click on stack screen header button?

I want to show the sorting flatlist result on home screen by clicking on stack screen header button. But the stack screen function is different from home screen. In sort, when I click on button(on stack screen) then show the result on home screen in flatlist. Below are the images for reference:

Step-1:

Step-1: here I've call onpress action for modal

Step-2:

Step-2: after click modal open for options. On click any options the result should be appear on home screen

about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

Have you tried using the Context API provided by react? it works by wrapping your application in a provider that can be accessed by both your header and your screen, that way the header can modify the data stored in the context, and the screen immediately consumes the data modified (shared data between components in different hierarchies)

Take a look at the docs, Ben Awad does a great job at explaining it in this video if you're more of a visual learner, his use case is for web development, but the same concept applies for React Native.

Hope you find this helpful!

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!