0

It might be a stupid question to ask, but searching on the web did not give me any conclusive result: If you want to maintain only a single code base, does it make sense to write your code in React and transpile to React Native? A client has the idea to have both an App (ideally for iOS and Android at the end) and a website all deduced from a single source.

I have some experience with webpack and I know it can be painful to configure, but is there some definite guide by Facebook on that issue which I missed?

References

B--rian
  • 5,578
  • 10
  • 38
  • 89

1 Answers1

1

One alternative is to run your react-native application on the web. The go to library for that is react-native-web.

Tiberiu Maran
  • 1,983
  • 16
  • 23
  • I was indeed blinded by the fact that React code is already existing, but I feel starting from React-native might indeed be a cleaner approach. – B--rian Dec 27 '19 at 21:47