From 8b2c4a38a461ff5ecc95972291bc711e2c5dec9a Mon Sep 17 00:00:00 2001
From: 简律纯 <hsiangnianian@outlook.com>
Date: Fri, 28 Apr 2023 01:47:57 +0800
Subject:

---
 examples/with-react-native-web/apps/native/App.tsx | 33 ++++++++++++++++++++++
 1 file changed, 33 insertions(+)
 create mode 100644 examples/with-react-native-web/apps/native/App.tsx

(limited to 'examples/with-react-native-web/apps/native/App.tsx')

diff --git a/examples/with-react-native-web/apps/native/App.tsx b/examples/with-react-native-web/apps/native/App.tsx
new file mode 100644
index 0000000..e6fbd5b
--- /dev/null
+++ b/examples/with-react-native-web/apps/native/App.tsx
@@ -0,0 +1,33 @@
+import { StyleSheet, Text, View } from "react-native";
+import { StatusBar } from "expo-status-bar";
+import { Button } from "ui";
+
+export default function Native() {
+  return (
+    <View style={styles.container}>
+      <Text style={styles.header}>Native</Text>
+      <Button
+        onClick={() => {
+          console.log("Pressed!");
+          alert("Pressed!");
+        }}
+        text="Boop"
+      />
+      <StatusBar style="auto" />
+    </View>
+  );
+}
+
+const styles = StyleSheet.create({
+  container: {
+    flex: 1,
+    backgroundColor: "#fff",
+    alignItems: "center",
+    justifyContent: "center",
+  },
+  header: {
+    fontWeight: "bold",
+    marginBottom: 20,
+    fontSize: 36,
+  },
+});
-- 
cgit v1.2.3-70-g09d2

