Skip to content

Instantly share code, notes, and snippets.

@jemise111
Created January 6, 2016 19:34
Show Gist options
  • Save jemise111/ef704485ce9cb18cd08d to your computer and use it in GitHub Desktop.
Save jemise111/ef704485ce9cb18cd08d to your computer and use it in GitHub Desktop.
//
// ReactNativeSwiftViewController.swift
//
import UIKit
class ReactNativeSwiftViewController: UIViewController {
@IBOutlet weak var reactViewWrapper: ReactNativeViewSwift!
override func viewDidLoad() {
super.viewDidLoad()
self.title = "React Wrapper (Swift)"
self.reactViewWrapper.data = [
"content": "Welcome to React Native"
]
self.reactViewWrapper.initializeReactView()
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment