-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
34121b7
commit 39c0a41
Showing
2 changed files
with
29 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.