This file contains hidden or 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
| import UIKit | |
| import React | |
| import SnapKit | |
| import Alamofire | |
| class ViewController: UIViewController { | |
| static let CODE_URL = "https://5b2cb626.ngrok.com/index.ios.bundle?platform=ios" | |
| // or where ever you are serving the bundle from | |
This file contains hidden or 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
| 'use strict'; | |
| import React, { | |
| requireNativeComponent, | |
| Text, | |
| View | |
| } from 'react-native'; | |
| var CustomRNView = requireNativeComponent('CustomRNView',null); |
This file contains hidden or 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
| #import "React/RCTView.h" | |
| @interface CustomRNView : RCTView | |
| @property (nonatomic, assign) NSString *message; | |
| @end |
This file contains hidden or 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
| import React | |
| @objc(CustomRNViewManager) | |
| class CustomRNViewManager : RCTViewManager { | |
| override func view() -> UIView! { | |
| return CustomRNView() | |
| } | |
| } |
This file contains hidden or 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
| import React | |
| @objc(CustomRNViewManager) | |
| class CustomRNViewManager : RCTViewManager { | |
| override func view() -> UIView! { | |
| return CustomRNView() | |
| } | |
| } |
This file contains hidden or 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
| import UIKit | |
| import React | |
| import SnapKit | |
| @objc(CustomRNView) | |
| class CustomRNView : UIView { | |
| var lblMessage:UILabel! | |
| override init(frame: CGRect) { |
This file contains hidden or 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
| import UIKit | |
| import React | |
| import SnapKit | |
| class ViewController: UIViewController { | |
| var rootView:RCTRootView! | |
| override func viewDidLoad() { | |
| super.viewDidLoad() |
This file contains hidden or 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
| 'use strict'; | |
| import React, { | |
| Text, | |
| View | |
| } from 'react-native'; | |
| var styles = React.StyleSheet.create({ | |
| container: { | |
| flex: 1, |
This file contains hidden or 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
| source 'https://github.com/CocoaPods/Specs.git' | |
| platform :ios, '8.0' | |
| use_frameworks! | |
| target 'IntegrateRN' do | |
| pod 'React', :path => './node_modules/react-native', :subspecs => [ | |
| 'Core', | |
| 'RCTImage', | |
| 'RCTNetwork', | |
| 'RCTText', |
This file contains hidden or 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
| { | |
| "name": "integrate-rn", | |
| "version": "1.0.0", | |
| "description": "", | |
| "scripts": { | |
| "start": "node node_modules/react-native/local-cli/cli.js start", | |
| "test": "echo \"Error: no test specified\" && exit 1" | |
| }, | |
| "author": "", |