Closed phemieny7 closed 1 year ago
i found out that i am not using the right formData to capture the image URI, which will only work in development stage
formData.append(`data[${i}]`, {
uri: data[i].localUri,
to
formData.append(`data[${i}]`, {
uri: data[i].uri,
My image doesn't preview while in the production environment, everything works fine in my development and testing environment, But after I bundle the app to the play store, this feature stops working, And I guess it is not writing the file to memory.
https://user-images.githubusercontent.com/10562193/196957990-7187290e-6852-456c-a2be-6f0f9a1b4480.mp4
Here is the look while in production after building to aab for the play store
https://user-images.githubusercontent.com/10562193/196956766-9f7b2344-1827-4630-94c3-8bfe8db77cac.mp4
Here is how it suppose to be, But it works in development alone
below is the component responsible for uploading