Hello, I am using this package in my project. It is used at 2 different places. At 1 of the place, it works like a charm probably because the API call uses GET method. At the second place where I am using this package, the API supports POST method. It is here that the code is not working. I have brainstormed a lot in the past 4 days but have not been able to find a solution. Below is the code snippet of RNFetchBlob :
If someone can help me out, it'd be great. I have a hunch that I am messing up somewhere with the request body. I have tried sending request bodies in different ways, as plain JavaScript object, before sending encoding the object using RNFetchBlob.base64.encode, finally I found in the docs about using array of object and each object has name and data keys, but this is also not working.
One thing that I noticed is when I delete the file from the downloads folder where it shows me "queued" below the filename, it triggers the then part of fetch.
Hello, I am using this package in my project. It is used at 2 different places. At 1 of the place, it works like a charm probably because the API call uses GET method. At the second place where I am using this package, the API supports POST method. It is here that the code is not working. I have brainstormed a lot in the past 4 days but have not been able to find a solution. Below is the code snippet of RNFetchBlob :
If someone can help me out, it'd be great. I have a hunch that I am messing up somewhere with the request body. I have tried sending request bodies in different ways, as plain JavaScript object, before sending encoding the object using RNFetchBlob.base64.encode, finally I found in the docs about using array of object and each object has name and data keys, but this is also not working.
One thing that I noticed is when I delete the file from the downloads folder where it shows me "queued" below the filename, it triggers the then part of fetch.