App • not “mobile web app”, an “HTML5 app”, or a “hybrid app”. • indistinguishable from an app built using Objective-C or Java. • same fundamental UI building blocks as regular iOS and Android apps.
install watchman 1 4. npm install -g react-native-cli 2 5. Xcode or Android Studio 2 The React Native CLI 1 Watchman is a tool by Facebook for watching changes in the filesystem. It is highly recommended you install it for better performance.
created, with different parameters. These creation parameters are called props. • For example, one basic React Native component is the Image. When you create an image, you can use a prop named source to control what image it shows.
a component: props and state. props are set by the parent and they are fixed throughout the lifetime of a component. For data that is going to change, we have to use state. • In general, you should initialize state in the constructor, and then call setState when you want to change it.
named style. • The style names and values usually match how CSS works on the web, except names are written using camel casing, e.g backgroundColor rather than background-color.
internally for React Native development. The killer feature of Nuclide is its debugging ability. It also has great inline Flow support. • Ignite is a starter kit that uses Redux and a few different common UI libraries. It has a CLI to generate apps, components, and containers. If you like all of the individual tech choices, Ignite could be perfect for you. • CodePush is a service from Microsoft that makes it easy to deploy live updates to your React Native app. If you don't like going through the app store process to deploy little tweaks, and you also don't like
that focuses on letting you build React Native apps in the Exponent development environment, without ever touching Xcode or Android Studio. If you wish React Native was even more JavaScripty and webby, check out Exponent. • Deco is an all-in-one development environment specifically designed for React Native. It can automatically set up a new project, search for open source components, and insert them. You can also tweak your app graphically in real time. Check it out if you use macOS.