We need to save a data from a form in a local storage and retrieve that data in the next screen and include it in an URL for a post request.
Screen register is where the user inputs his data and we need to save it in local storage.
The next screen it show the user products and we need to pass the user id to the API in a post request.
Our app is using fetch and react-native-cli: 2.0.1
We are attaching our code which is giving errors. We are getting the error in this line mainly:
fetch('[login to view URL]'+vendorId+'/products/',
When we pass the vendorId manually it works fine. There is no problem acessing the API.
You must fix that code and send it back.
8 freelancers are bidding on average $21 for this job
I have a lot of experience with integrating API's in react native app. If you can connect, i can share my previous work and we can proceed to solve your problem within a day. Awaiting your response.