This is a simple counter app for playing around with React Native.
Note: This project is tailored for iOS development on a Mac
- React Native
- to enable hot reloading, press
Command-D
to bring up the dev menu and select.. you guessed it:Enable Hot Reloading
- to enable hot reloading, press
- Redux
- with react-redux bindings
- Remote Redux DevTools
- launch DevTools with this handy Chrome app
> git clone https://github.com/AndrewTHuang/minimal-react-native-redux.git
> cd minimal-react-native-redux
> npm install
Open the project in Xcode (v7.0 or higher)
> open ios/MinimalReactNativeRedux.xcodeproj
Press `Command-R` to build the app
Upon successful build, Simulator will automatically launch the app (while running React packager on port 8081).
After the initial build, there is no need for Xcode if you're just playing around with the app in Simulator. To do so, follow these steps:
> npm start (this will run React packager on port 8081)
Open Simulator (Command-Space bar + 'simulator')
Swipe to the second screen
Tap on the `MinimalReactNativeRedux` icon