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

256
Views
Is it possible to overwrite a static JSON file during runtime after getting the updated JSON from a GET request?

My React Native project has a static JSON file from which I access some properties and I am wondering if it is possible to overwrite that JSON during runtime. Lets say I have a button that makes a GET request for an updated version of that JSON, would it be possible to overwrite that JSON file with the result of my GET request?

I imagine I'd need some sort of React Native filesystem dependency

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

0

you can use a state where you put your JSON data, which get updated every time you make a GET request, which is gonna overite the previous state(data) Edit : you can use a caching system with RFNS, we have done that in our app and it works perfectly, you just need to know how to use react-native-fs package.

about 4 years ago · Juan Pablo Isaza Report

0

Yes, head over to RNFS documentation

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!