Foo: JSExport { var bar: String { get set } func baz() -> String } class FooImpl: NSObject, Foo { var bar: String = "Hello" func baz() -> String { return "World" } }
// You'll need to implement some methods here. // See below for more information and examples. } const MyRenderer = Reconciler(HostConfig) ... どのようにレンダリングするか書く
JSValue) -> UIView { switch type { case "text": let label = UILabel() if let text = props.objectForKeyedSubscript("children"), !text.isUndefined { label.text = text.toString() } return label ... } }