From React to React Native challenges and advantages

It’s like switching from a manual transmission to an automatic transmission car” I started out with React Native and was amazed that JS could be used to create such beautiful apps. it should be no problem for anyone to switch from React to React Native because everything is same. The lifecycle, the component framework, literally everything is the same. The only thing that is different are the component names like div, p table (HTML) components are replaced with like View, Text and TouchableOpacity (Button). In my opinion, they are actually very easy to ge use to and make much more sense. On top of that, no webpack configuration! When I switch from RN to React, I hate that I have to configure webpack for my project even though there automation tools for that. React Native has really simplified the process of creating mobile apps. There thousands modules on NPM for React Native, which also can be adapted to the web with additional effort. There even package called “React-Native-web” which brings all the components from React Native to React, which then only requires you to write a single project for web and mobile!

The only hard part I think is understanding the bridge between the OS and React Native. Let’s say you want to create a Component that requires Native functionality then it might be hard to understand it but not impossible. If you are new to mobile development then it might take some time to understand how everything works but once you get the jist of handling and Native and the JS, it’s a smooth ride.