Answer the question
In order to leave comments, you need to log in
Can a React expert jump right into React Native?
Hello. Interested in the question of similarities and differences between these frameworks. I know that React is used for web browser applications, it compiles to default js on startup, and with React Native they create mobile applications. I am also deeply familiar with the internals of react, advanced techniques, ecosystems there, etc. What is React Native in relation to React?
Answer the question
In order to leave comments, you need to log in
Most of the differences are
1) React-native components are used instead of tags (for example, View = div analog, Image = img analog)
2) There are some rules and exceptions, for example, some css styles do not work / work differently and there are new ones. For example, View by standard is already flex with flexDirection: column (although the div is initially empty)
3) To access native components, community / facebook modules are used, for example, native navigation
4) There are, of course, other differences, for example, their methods of the alert type that you need import, vibration, network connection, keyboard types, etc.
I'm not a very cool react programmer (roughly speaking full stack MERN), but for about 10 days I studied react-native and, in principle, I could already write more or less normal applications. But I think that large applications cannot be made in native, because these are still crutches, for example, the animation will not be through transition, but simply to which state 0.0001 is added after some time and re-rendering occurs, which can have a bad effect on performance. If you don’t want to change your favorite js, then of course this is the only way out, but if you are a cool programmer, then learn Java (or Kotlin) or Swift in a month or two than doing everything on crutches, which eventually will be converted into the same Java or Sfift.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question