Code samples for the book Learning React Native. You can get the book from Amazon or O'Reilly!
As of Release 2.0.0, full project code is not included. Instead, the relevant JavaScript files for each example are provided. You'll want to create your own React Native project, either by using create-react-native-app
or react-native init
.
Some projects are not compatible with Expo apps (i.e. those created with create-react-native-app
). This is noted in the README for each project. If you are using an Expo-based app, you will need to eject in order to use those projects.
Release 1.0.0 is the next version, updated to use React Native version 0.26.3
. This version also uses more ES2015-style JavaScript idioms, when appropriate; most notably consistent ES6-style classes and module definitions. The PlatformSpecific
project remains at version 0.0.1
, due to the example's incompatibility with React Native 0.26.3
.
Release 0.0.1 is the version published in the printed book (first edition). The versions of React Native used in each project vary; most use React Native 0.11.x
.
Questions, comments, or feedback? I'm @brindelle on Twitter.