Skip to content

Instantly share code, notes, and snippets.

@RoRoGadget
Last active June 5, 2019 15:11
Show Gist options
  • Save RoRoGadget/bbd78b98139d6664af30c18c1605544d to your computer and use it in GitHub Desktop.
Save RoRoGadget/bbd78b98139d6664af30c18c1605544d to your computer and use it in GitHub Desktop.
SwiftUI4RN-HelloWorld
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>
);
}
}
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