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-native v0.20
- redux v3
- react-redux v4
- redux-thunk v1
- remote-redux-devtools v0.1
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.
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
Troubleshooting
Naming collision detected
Failed to build DependencyGraph:
Naming collision detected:
/Users/dbrowne/Sites/react-native-counter-ios-android/node_modules/remote-redux-devtools/node_modules/react/node_modules/fbjs/lib/warning.js collides with /Users/dbrowne/Sites/react-native-counter-ios-android/node_modules/react-native/node_modules/fbjs/lib/warning.js
Error:
Naming collision detected:
/Users/dbrowne/Sites/react-native-counter-ios-android/node_modules/remote-redux-devtools/node_modules/react/node_modules/fbjs/lib/warning.js collides with /Users/dbrowne/Sites/react-native-counter-ios-android/node_modules/react-native/node_modules/fbjs/lib/warning.js
License
MIT © C. T. Lin