diff options
| author | 2023-11-03 21:17:06 +0800 | |
|---|---|---|
| committer | 2023-11-03 21:17:06 +0800 | |
| commit | 94071d7ce16c56641d67d488e2bac6be84ffe731 (patch) | |
| tree | d837b71575aba805e18b3db3d056a106d81818fe /examples/with-react-native-web/packages/ui | |
| parent | 9f0d43fe099a95ab1516ae951dcb60a89e76a5a5 (diff) | |
| download | HydroRoll-94071d7ce16c56641d67d488e2bac6be84ffe731.tar.gz HydroRoll-94071d7ce16c56641d67d488e2bac6be84ffe731.zip | |
chore: delete useless files
Diffstat (limited to 'examples/with-react-native-web/packages/ui')
5 files changed, 0 insertions, 96 deletions
diff --git a/examples/with-react-native-web/packages/ui/.gitignore b/examples/with-react-native-web/packages/ui/.gitignore deleted file mode 100644 index cf309c2..0000000 --- a/examples/with-react-native-web/packages/ui/.gitignore +++ /dev/null @@ -1,28 +0,0 @@ -# See https://help.github.com/articles/ignoring-files/ for more about ignoring files. - -# dependencies -node_modules -.pnp -.pnp.js - - -# misc -.DS_Store -*.pem - -# build -dist - -# debug -npm-debug.log* -yarn-debug.log* -yarn-error.log* - -# local env files -.env.local -.env.development.local -.env.test.local -.env.production.local - -# turbo -.turbo
\ No newline at end of file diff --git a/examples/with-react-native-web/packages/ui/package.json b/examples/with-react-native-web/packages/ui/package.json deleted file mode 100644 index 1915593..0000000 --- a/examples/with-react-native-web/packages/ui/package.json +++ /dev/null @@ -1,22 +0,0 @@ -{ - "name": "ui", - "version": "0.0.0", - "main": "./dist/index.js", - "types": "./dist/index.d.ts", - "scripts": { - "build": "tsup src/index.tsx --format esm,cjs --dts --external react", - "dev": "tsup src/index.tsx --format esm,cjs --watch --dts --external react", - "clean": "rm -rf dist" - }, - "devDependencies": { - "@types/react": "^18.0.22", - "@types/react-native": "^0.69.15", - "tsconfig": "*", - "tsup": "^6.0.1", - "typescript": "^4.7.4" - }, - "dependencies": { - "react": "^18.1.0", - "react-native": "^0.70.3" - } -} 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 ( - <TouchableOpacity style={styles.button} onPress={onClick}> - <Text style={styles.text}>{text}</Text> - </TouchableOpacity> - ); -} - -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"; diff --git a/examples/with-react-native-web/packages/ui/tsconfig.json b/examples/with-react-native-web/packages/ui/tsconfig.json deleted file mode 100644 index f0455ac..0000000 --- a/examples/with-react-native-web/packages/ui/tsconfig.json +++ /dev/null @@ -1,8 +0,0 @@ -{ - "extends": "tsconfig/react-native-library", - "include": ["."], - "exclude": ["dist", "build", "node_modules"], - "compilerOptions": { - "strict": true - } -} |
