qingqinxl1 / nornj-react-native-counter

Minimal implement of redux counter example on ReactNative iOS and Android

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

react-native-counter-ios-android

Minimal implement of redux counter example on ReactNative iOS and Android

I don't use any syntax out of React Native's enabled transformations, so no any patch on ReactNative is needed.

  • react - v16.0.0-alpha.12
  • react-native v0.47.0
  • redux v3
  • react-redux v4
  • redux-thunk v2
  • remote-redux-devtools v0.5
  • styled-components - v2
  • nornj - v0.4.2

How to run this Porject

Setup iOS and Android env

see

Install npm dependecies

npm i

run iOS

Open ios/ReduxCounterUniversal.xcodeproj and hit run in Xcode.

or

react-native run-ios

run Android

emulator -avd [your_emulator_name] -gpu on &
react-native run-android

On Mac using fn + F2 to open debug panel

Also you can use adb logcat to log some android debug messages.

adb logcat -s 'ReactNative'

Remote devtools

chrome app (recommended)

See remote-redux-devtools for more information

Upgrade Guide

React Native Upgrading

Maintainers

License

MIT © C. T. Lin

About

Minimal implement of redux counter example on ReactNative iOS and Android


Languages

Language:JavaScript 44.0%Language:Objective-C 28.1%Language:Python 11.0%Language:Java 8.5%Language:HTML 8.4%