Difference between React Js and React Native
Posted By : Mahima Gautam | 27-Oct-2017
Setup and bundling
React-native is the framework, whereas
For running the app we only need Xcode(in iOS and MAC) and android studio(in android) in our system.We can also run that on simulators/emulators of the platform for using it directly in our devices.
Animations and gestures
for animating component we should use Animated API provided by react-native.It allows us for creating different animations like timed or animation based on velocity associated to gesture.React-native have provided us with layoutAnimation which is easy to use for any transitions but works for the only iOS.
Designing applications for different platforms with same code can be the tedious task to do. By making some assumptions we have to see how we will look and behave, there are two choices:
- Either we can have common design for both the platforms
- We can decide to have a different set of code or DOM, stylesheets and
logicsand animations for following in UI and UX guideline of platform. To go with second point, react-native will detect on what platform we are running the code and will place the right code on the right platform.
Working with react-native provides us with ability for using developer tools that are used with reactjs.Chrome dev tools works effectively for inspecting network requests, display console logs and stop code on debugger statements.