This is an example for react-native
, which display the NBA informations, such as teams, players, and so on. Relative data is from stat.nba.com
, you can reference the wiki page of nba_py
on github.
This example tells us how to use React Native, Redux, and more.
- React Native (follow iOS and Android guides)
- Xcode 7.3+
- CocoaPods (only for iOS)
- Version 1.0+ recommended (
gem install cocoapods --pre
)
- Clone the repo
$ git clone https://github.com/XiandongHu/react-native-first-app.git
$ cd react-native-first-app
- Install dependencies (npm v3+)
$ npm install
$ (cd ios; pod install) # only for iOS version
- Running on Android
$ react-native run-android
$ adb reverse tcp:8081 tcp:8081 # required to ensure the Android app can access the Packager server
- Running on iOS
$ react-native run-ios