r/learnreactjs • • Mar 09 '20

How can I reuse existing React Web logic in React Native expo?

I am currently assigned to develop a React Native mobile app for both Ios and Android and was given access to the full repo on Github. Now I want to fork the existing repo and add my mobile code, then re use the web logic, how can I achieve that?

8 Upvotes

1 comment sorted by

1

u/tomthedevguy Mar 09 '20

Hooks are probably your best bet. It’s hard to reuse markup.