From 94071d7ce16c56641d67d488e2bac6be84ffe731 Mon Sep 17 00:00:00 2001 From: 简律纯 Date: Fri, 3 Nov 2023 21:17:06 +0800 Subject: chore: delete useless files --- .../packages/ui/src/button.tsx | 37 ---------------------- .../packages/ui/src/index.tsx | 1 - 2 files changed, 38 deletions(-) delete mode 100644 examples/with-react-native-web/packages/ui/src/button.tsx delete mode 100644 examples/with-react-native-web/packages/ui/src/index.tsx (limited to 'examples/with-react-native-web/packages/ui/src') diff --git a/examples/with-react-native-web/packages/ui/src/button.tsx b/examples/with-react-native-web/packages/ui/src/button.tsx deleted file mode 100644 index a94f4ec..0000000 --- a/examples/with-react-native-web/packages/ui/src/button.tsx +++ /dev/null @@ -1,37 +0,0 @@ -import * as React from "react"; -import { - TouchableOpacity, - StyleSheet, - GestureResponderEvent, - Text, -} from "react-native"; - -export interface ButtonProps { - text: string; - onClick?: (event: GestureResponderEvent) => void; -} - -export function Button({ text, onClick }: ButtonProps) { - return ( - - {text} - - ); -} - -const styles = StyleSheet.create({ - button: { - maxWidth: 200, - textAlign: "center", - borderRadius: 10, - paddingTop: 14, - paddingBottom: 14, - paddingLeft: 30, - paddingRight: 30, - fontSize: "15px", - backgroundColor: "#2f80ed", - }, - text: { - color: "white", - }, -}); diff --git a/examples/with-react-native-web/packages/ui/src/index.tsx b/examples/with-react-native-web/packages/ui/src/index.tsx deleted file mode 100644 index f4ea832..0000000 --- a/examples/with-react-native-web/packages/ui/src/index.tsx +++ /dev/null @@ -1 +0,0 @@ -export { Button, type ButtonProps } from "./button"; -- cgit v1.2.3-70-g09d2