Last active
June 5, 2019 15:11
-
-
Save RoRoGadget/bbd78b98139d6664af30c18c1605544d to your computer and use it in GitHub Desktop.
SwiftUI4RN-HelloWorld
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, { Component } from 'react'; | |
import { Text, View } from 'react-native'; | |
export default class HelloWorldApp extends Component { | |
render() { | |
return ( | |
<View style={{ flex: 1, justifyContent: "center", alignItems: "center" }}> | |
<Text>Hello, world!</Text> | |
</View> | |
); | |
} | |
} |
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 SwiftUI | |
import PlaygroundSupport | |
struct HelloWorld: View { | |
var body: some View { | |
Text("Hello World!") | |
} | |
} | |
PlaygroundPage.current.liveView = UIHostingController(rootView: HelloWorld()) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment