Update IntegrationWithExistingApps.md for Swift 3
Summary: Update integrating with existing Swift App code for Swift 3. Closes https://github.com/facebook/react-native/pull/10547 Differential Revision: D4079631 Pulled By: lacker fbshipit-source-id: 7a493ca7131a10a2466816b104b9cb4f1ff369f5
This commit is contained in:
parent
b6b0e57546
commit
c9d8e233aa
|
@ -425,7 +425,7 @@ import React
|
|||
```
|
||||
@IBAction func highScoreButtonTapped(sender : UIButton) {
|
||||
NSLog("Hello")
|
||||
let jsCodeLocation = NSURL(string: "http://localhost:8081/index.ios.bundle?platform=ios")
|
||||
let jsCodeLocation = URL(string: "http://localhost:8081/index.ios.bundle?platform=ios")
|
||||
let mockData:NSDictionary = ["scores":
|
||||
[
|
||||
["name":"Alex", "value":"42"],
|
||||
|
@ -441,7 +441,7 @@ import React
|
|||
)
|
||||
let vc = UIViewController()
|
||||
vc.view = rootView
|
||||
self.presentViewController(vc, animated: true, completion: nil)
|
||||
self.present(vc, animated: true, completion: nil)
|
||||
}
|
||||
```
|
||||
|
||||
|
|
Loading…
Reference in New Issue