简体   繁体   中英

Connect react native to an existing php and mysql project

So I currently have a website built with PHP and MySQL that is hosted by a provider similar to GoDaddy (called "XSERVER" or "エックスサーバー").

I've been trying to connect the MySQL server to a react-native project so that I could GET and POST information from my app, but I haven't had any luck. The hosting company does not allow node.js to be run on their servers, so the option of express.js was eliminated.

what other option could I take to connect a PHP and MySQL server to a react-native app?

Sorry for the general and ambiguous question, I genuinely don't know who to ask or if I should give up.

The website: https://kasumushi.com/

You have many options to create an API with MySQL and PHP. This API can then be used in your React native application. You should incorporate some sort of auth mechanism to be sure that only your react app can interact with the API.

Either create one from scratch , or use a REST API framework

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM