Load JSON file dynamically - React Native

Lukket Opslået 5 år siden Betalt ved levering
Lukket 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

JavaScript

Projekt ID: #18176599

Om projektet

15 bud Remote projekt Aktiv 5 år siden

15 freelancere byder i gennemsnit $416 timen for dette job

DevStar925

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.

$500 USD in 10 dage
(6 bedømmelser)
5.6
kypergio

Hi, this could be handle in a server solution I think. If your app would be in a host I could create an "API" with those files and you could request it to get the json info in JSON format in a request. What do you t Flere

$250 USD in 0 dage
(29 bedømmelser)
4.9
superbpartner

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

$555 USD in 3 dage
(10 bedømmelser)
4.5
saravanan081990

hi, I saw your project description and I have faced same problem and I solve it. can we connect and fix this issue

$250 USD på 1 dag
(5 bedømmelser)
2.9
lntrx

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

$250 USD på 1 dag
(1 bedømmelse)
2.5
peterlazar

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

$388 USD in 10 dage
(1 bedømmelse)
1.1
domaxy111

Dear Employer, We are ready to start your work right now. Me and my team is ready to complete your work with a quality work. I am capable to do this project. we have 6+ year experience in IT Industry. We have alread Flere

$500 USD in 10 dage
(0 bedømmelser)
0.0
nikhilcoolstuff

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

$444 USD in 10 dage
(0 bedømmelser)
0.0
sankarborofl

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.

$555 USD in 10 dage
(0 bedømmelser)
0.0
priezz

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.

$444 USD på 1 dag
(0 bedømmelser)
0.0