I developed a PHP project, now I am working on connecting it to react native app. However, I tried many codes to upload image to the server nothing works. Here is my code example, }; And for the PHP server side (upload.php), here is the code I got this code from here https://aboutreact.com/file-uploading-in-react-native/ And I am getting this error Can
Tag: react-native
Handling PHP response with Axios/React Native
I’m a React Native beginner, please excuse basic questions. I’m having trouble handling json returned from PHP in react native using axios get. My php returns (have tried both with and without headers part, and also tried with/without json_encode): My react native function is below (with the part I’m trying to get to work commented out) The console.log seems to
How to create a json php api that only connects given with the expo react native app?
I have the following PHP code where I intend to convert it into an API to show my sports news that is hosted in a PHP application and the data stored in MYSQL, so I want to show those records of my news in an application developed in Expo React Native. The code already generates a JSON structure for me,
how can i upload image using react native expo image to my local server PHP / Database MySQL
I’m making a mobile application using expo client to allow user to upload image or take from a camera and then the image saves on my local server on PHP / Database MySQL. How do I do that thing if I’m …
How to send a normal variable’s value from PHP to JavaScript?
I have the below piece of code in my test.php file. The code mainly has a variable defined in PHP, and I want to send it to a JavaScript function so it could POST it. Here’s the code : But when I run this code, I get this error on console : Uncaught SyntaxError: Unexpected identifier. What should I do
Why am I receiving an HTTP 412 status error in React Native on subsequent downloads of a specific file?
I have created a React Native App that allows me to download Zip packages to my app. In most cases it has worked, I can download the zip package, delete a zip package, and re-download it again. …