Load JSON file dynamically - React Native
$250-750 USD
Betalt ved levering
I'm a react-native developer, and now I faced a serious problem for my project. This is quite urgent and needs exact solution. So if you're not an expert on this then don't waste your time.
BACKGROUND
I have thousands of JSON files as .txt and only one JSON file should be loaded dynamically when the user clicked that book.
I tried to use require(), but as you know it works only with the static path.
I declared thousands of file path by dynamic like this in one js file.
export var FILE_PATH = {
book1: {
'a': 'data/bible/AAA_%[login to view URL]',
'b': 'data/bible/BBB_%[login to view URL]',
'c': 'data/bible/CCC_%[login to view URL]',
...
},
book2: {
...
}
...
}
'%s' should be replaced with the right string depends on which book was clicked by the user.
Please send me the proposal with your plan to solve this, or alternative ways to handle this one. I'm open to discussion and will hire the right candidate who bring me the right solution.
Looking forward to work with you on this one.
Cheers
Projekt ID: #18176599
Om projektet
15 freelancere byder i gennemsnit $416 timen for dette job
How are you? I read your description. I am C++/C#/Java/Python programming Expert. I can finish your project quickly with best quality. I want to discuss more on chat. Thank you for your time.
Hi,dear. I've just checked all requirements of your project 'Load JSON file dynamically - React Native'. I'm a senior software developer and I'm able to fulfill your project requirements ,you may be interested in me. P Flere
hi, I saw your project description and I have faced same problem and I solve it. can we connect and fix this issue
Hello there, I can help you. I won't waste your time. It has a really simple trick. We can discuss details over the chat. You don't have to use require
Hi there, I am Peter and I have been working with react native for close to 2 years now. I have some questions for you, - are all the json files going to be bundled with the app? - if all the json files are bundl Flere
Hi , I am an experienced React native developer and I can help you in solving your exact problem . I had faced similar issue when i need to map static .png files and .mp3 files with flatlist single item object . Flere
Currently I work as a React native developer at a company. Previously I have worked with JSON as my database. So I have much experience in working with json files and this is why you may need me.
I know the exact solution for you issue, I had similar in one of the projects I have worked on. So there is nothing to invent here, just re-use the known pattern.