Skip to content

Commit

Permalink
update document
Browse files Browse the repository at this point in the history
  • Loading branch information
tomoima525 committed Jan 21, 2018
1 parent 34121b7 commit 39c0a41
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 7 deletions.
36 changes: 29 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,17 +1,39 @@
# ChuckNorrisViewer
- ChuckNorrisViewer (ReactNative + Redux + RxJs)
- A sample code of React Native - Native Hybrid application
- A sample implementation of React Native - Native Hybrid application using ReactNative + Redux + RxJs
- This application opens React Native screen from Native platform, fetch a list of Chuck Norris Fact on React Native, and return selected value to Native platform.

### Android
![img](./img/img1.png)

### iOS
![img2](./img/img2.png)

# Note
- master branch is a very basic implementation of the hybrid application. If you would like to see a real world code, switch a branch to 'react_service_architecture'. This branch showcases a practical hybrid application using Dagger2 for DI and RxJava2 for creating Observer Pattern.  
- Currently this hybrid application only works for Android version. iOS version will come in shortly.
### Android
- master branch is a very basic implementation of the hybrid application on Android.
- If you would like to see a real world code, switch a branch to 'react_service_architecture'. This branch showcases a practical hybrid application using Dagger2 for DI and RxJava2 for creating Observer Pattern.  

### iOS
- master branch is a very basic implementation of the hybrid application on iOS.
- You might want to use RxSwift or other Reactive programming library to implement Observer Pattern.

# Setup and run

### React Native

```
npm install
react-native run-ios
react-native run-android (Launch emulator beforehand)
react-native start
```

### Android
- Open Android Studio from `android/build.gradle`, and start the application from "Run" button

### iOS
- Run command below:

```
pod install
```

- Open `ios2/chuckNorrisViewer2.xcworkspace`
- Build and start the app
Binary file added img/img2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 39c0a41

Please sign in to comment.