kapil gupta
kapil gupta

Reputation: 353

reactjs for both web and mobile applications

I need to develop the application which will be same for mobile app and web application. I was researching on reactjs. Can I convert my reactjs code for web-app to react native for mobile application? The way we do in ionic framework(angular)

Upvotes: 0

Views: 357

Answers (1)

Ben Cohen
Ben Cohen

Reputation: 1410

  1. You can definitely use cordova \ phonegap in order to create an app out of your website, which will make it hybrid but not native (suitable for most site types)
  2. You cannot 'convert' or re-transpile your code to react-native. You have to re-build it using react native. It will be much easier ofcourse because you have a running react system, but still.

I would recommend trying the first option. Good luck!

Upvotes: 1

Related Questions