From 8b2c4a38a461ff5ecc95972291bc711e2c5dec9a Mon Sep 17 00:00:00 2001 From: 简律纯 Date: Fri, 28 Apr 2023 01:47:57 +0800 Subject: --- .../apps/native/.expo-shared/assets.json | 4 +++ .../with-react-native-web/apps/native/.gitignore | 14 +++++++++ examples/with-react-native-web/apps/native/App.tsx | 33 ++++++++++++++++++++ .../with-react-native-web/apps/native/README.md | 3 ++ .../with-react-native-web/apps/native/app.json | 31 +++++++++++++++++++ .../apps/native/assets/adaptive-icon.png | Bin 0 -> 17547 bytes .../apps/native/assets/favicon.png | Bin 0 -> 1466 bytes .../apps/native/assets/icon.png | Bin 0 -> 22380 bytes .../apps/native/assets/splash.png | Bin 0 -> 47346 bytes .../apps/native/babel.config.js | 6 ++++ .../with-react-native-web/apps/native/index.js | 8 +++++ .../apps/native/metro.config.js | 21 +++++++++++++ .../with-react-native-web/apps/native/package.json | 29 ++++++++++++++++++ .../apps/native/tsconfig.json | 6 ++++ .../apps/web/.babel.config.js | 4 +++ examples/with-react-native-web/apps/web/.gitignore | 34 +++++++++++++++++++++ examples/with-react-native-web/apps/web/README.md | 30 ++++++++++++++++++ .../with-react-native-web/apps/web/next-env.d.ts | 5 +++ .../with-react-native-web/apps/web/next.config.js | 18 +++++++++++ .../with-react-native-web/apps/web/package.json | 27 ++++++++++++++++ .../with-react-native-web/apps/web/pages/_app.tsx | 6 ++++ .../with-react-native-web/apps/web/pages/index.tsx | 12 ++++++++ .../apps/web/styles/global.css | 8 +++++ .../apps/web/styles/index.module.css | 3 ++ .../with-react-native-web/apps/web/tsconfig.json | 5 +++ 25 files changed, 307 insertions(+) create mode 100644 examples/with-react-native-web/apps/native/.expo-shared/assets.json create mode 100644 examples/with-react-native-web/apps/native/.gitignore create mode 100644 examples/with-react-native-web/apps/native/App.tsx create mode 100644 examples/with-react-native-web/apps/native/README.md create mode 100644 examples/with-react-native-web/apps/native/app.json create mode 100644 examples/with-react-native-web/apps/native/assets/adaptive-icon.png create mode 100644 examples/with-react-native-web/apps/native/assets/favicon.png create mode 100644 examples/with-react-native-web/apps/native/assets/icon.png create mode 100644 examples/with-react-native-web/apps/native/assets/splash.png create mode 100644 examples/with-react-native-web/apps/native/babel.config.js create mode 100644 examples/with-react-native-web/apps/native/index.js create mode 100644 examples/with-react-native-web/apps/native/metro.config.js create mode 100644 examples/with-react-native-web/apps/native/package.json create mode 100644 examples/with-react-native-web/apps/native/tsconfig.json create mode 100644 examples/with-react-native-web/apps/web/.babel.config.js create mode 100644 examples/with-react-native-web/apps/web/.gitignore create mode 100644 examples/with-react-native-web/apps/web/README.md create mode 100644 examples/with-react-native-web/apps/web/next-env.d.ts create mode 100644 examples/with-react-native-web/apps/web/next.config.js create mode 100644 examples/with-react-native-web/apps/web/package.json create mode 100644 examples/with-react-native-web/apps/web/pages/_app.tsx create mode 100644 examples/with-react-native-web/apps/web/pages/index.tsx create mode 100644 examples/with-react-native-web/apps/web/styles/global.css create mode 100644 examples/with-react-native-web/apps/web/styles/index.module.css create mode 100644 examples/with-react-native-web/apps/web/tsconfig.json (limited to 'examples/with-react-native-web/apps') diff --git a/examples/with-react-native-web/apps/native/.expo-shared/assets.json b/examples/with-react-native-web/apps/native/.expo-shared/assets.json new file mode 100644 index 0000000..1e6decf --- /dev/null +++ b/examples/with-react-native-web/apps/native/.expo-shared/assets.json @@ -0,0 +1,4 @@ +{ + "12bb71342c6255bbf50437ec8f4441c083f47cdb74bd89160c15e4f43e52a1cb": true, + "40b842e832070c58deac6aa9e08fa459302ee3f9da492c7e77d93d2fbf4a56fd": true +} diff --git a/examples/with-react-native-web/apps/native/.gitignore b/examples/with-react-native-web/apps/native/.gitignore new file mode 100644 index 0000000..ec8a36a --- /dev/null +++ b/examples/with-react-native-web/apps/native/.gitignore @@ -0,0 +1,14 @@ +node_modules/ +.expo/ +dist/ +npm-debug.* +*.jks +*.p8 +*.p12 +*.key +*.mobileprovision +*.orig.* +web-build/ + +# macOS +.DS_Store 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 ( + + Native +