Learning React Native, Chapter 4: Components for Mobile
Analogies Between HTML and Native Components Many of the React Native components are directly comparable to their HTML counterparts. While they are similar, they they are not interchangeable. You cannot share UI code between React on the web and React Native. The JavaScript code is shareable as long as it only contains JavaScript. You should put all your business logic in their own files to make converting your code from one to the other much easier. The Component In React Native, text has to be enclosed in tags. These are similar to the or tags you may be used to in HTML. The Component The component is almost the same as the HTML tag. The Image component has a source property. The source can be local or it can a remote resource. Working with Touch And Gestures React Native provides API's for using touch and gestures. Creating Basic Iterations with Button component is a simple API, it allows the s...