phpdatabasereact-nativemobile

Is it OK to access one database from two different application endpoints?


I already have a web app that uses raw PHP to access a database. Now I want to create a mobile app using react-native, that will be a mobile version of the web app, thus use the same database. What is the best way to implement the mobile app?


Solution

  • You can create a Rest API both for your web app and mobile app. So they can share same logic as backend.