aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/examples/with-react-native-web/apps/native
diff options
context:
space:
mode:
author简律纯 <i@jyunko.cn>2023-11-03 21:17:06 +0800
committer简律纯 <i@jyunko.cn>2023-11-03 21:17:06 +0800
commit94071d7ce16c56641d67d488e2bac6be84ffe731 (patch)
treed837b71575aba805e18b3db3d056a106d81818fe /examples/with-react-native-web/apps/native
parent9f0d43fe099a95ab1516ae951dcb60a89e76a5a5 (diff)
downloadHydroRoll-94071d7ce16c56641d67d488e2bac6be84ffe731.tar.gz
HydroRoll-94071d7ce16c56641d67d488e2bac6be84ffe731.zip
chore: delete useless files
Diffstat (limited to 'examples/with-react-native-web/apps/native')
-rw-r--r--examples/with-react-native-web/apps/native/.expo-shared/assets.json4
-rw-r--r--examples/with-react-native-web/apps/native/.gitignore14
-rw-r--r--examples/with-react-native-web/apps/native/App.tsx33
-rw-r--r--examples/with-react-native-web/apps/native/README.md3
-rw-r--r--examples/with-react-native-web/apps/native/app.json31
-rw-r--r--examples/with-react-native-web/apps/native/assets/adaptive-icon.pngbin17547 -> 0 bytes
-rw-r--r--examples/with-react-native-web/apps/native/assets/favicon.pngbin1466 -> 0 bytes
-rw-r--r--examples/with-react-native-web/apps/native/assets/icon.pngbin22380 -> 0 bytes
-rw-r--r--examples/with-react-native-web/apps/native/assets/splash.pngbin47346 -> 0 bytes
-rw-r--r--examples/with-react-native-web/apps/native/babel.config.js6
-rw-r--r--examples/with-react-native-web/apps/native/index.js8
-rw-r--r--examples/with-react-native-web/apps/native/metro.config.js21
-rw-r--r--examples/with-react-native-web/apps/native/package.json29
-rw-r--r--examples/with-react-native-web/apps/native/tsconfig.json6
14 files changed, 0 insertions, 155 deletions
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
deleted file mode 100644
index 1e6decf..0000000
--- a/examples/with-react-native-web/apps/native/.expo-shared/assets.json
+++ /dev/null
@@ -1,4 +0,0 @@
-{
- "12bb71342c6255bbf50437ec8f4441c083f47cdb74bd89160c15e4f43e52a1cb": true,
- "40b842e832070c58deac6aa9e08fa459302ee3f9da492c7e77d93d2fbf4a56fd": true
-}
diff --git a/examples/with-react-native-web/apps/native/.gitignore b/examples/with-react-native-web/apps/native/.gitignore
deleted file mode 100644
index ec8a36a..0000000
--- a/examples/with-react-native-web/apps/native/.gitignore
+++ /dev/null
@@ -1,14 +0,0 @@
-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
deleted file mode 100644
index e6fbd5b..0000000
--- a/examples/with-react-native-web/apps/native/App.tsx
+++ /dev/null
@@ -1,33 +0,0 @@
-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,
- },
-});
diff --git a/examples/with-react-native-web/apps/native/README.md b/examples/with-react-native-web/apps/native/README.md
deleted file mode 100644
index be1fea0..0000000
--- a/examples/with-react-native-web/apps/native/README.md
+++ /dev/null
@@ -1,3 +0,0 @@
-# Native
-
-A [react-native](https://reactnative.dev/) app built using [expo](https://docs.expo.dev/)
diff --git a/examples/with-react-native-web/apps/native/app.json b/examples/with-react-native-web/apps/native/app.json
deleted file mode 100644
index 9262f58..0000000
--- a/examples/with-react-native-web/apps/native/app.json
+++ /dev/null
@@ -1,31 +0,0 @@
-{
- "expo": {
- "name": "native",
- "slug": "native",
- "version": "1.0.0",
- "orientation": "portrait",
- "icon": "./assets/icon.png",
- "userInterfaceStyle": "light",
- "splash": {
- "image": "./assets/splash.png",
- "resizeMode": "contain",
- "backgroundColor": "#ffffff"
- },
- "updates": {
- "fallbackToCacheTimeout": 0
- },
- "assetBundlePatterns": ["**/*"],
- "ios": {
- "supportsTablet": true
- },
- "android": {
- "adaptiveIcon": {
- "foregroundImage": "./assets/adaptive-icon.png",
- "backgroundColor": "#FFFFFF"
- }
- },
- "web": {
- "favicon": "./assets/favicon.png"
- }
- }
-}
diff --git a/examples/with-react-native-web/apps/native/assets/adaptive-icon.png b/examples/with-react-native-web/apps/native/assets/adaptive-icon.png
deleted file mode 100644
index 03d6f6b..0000000
--- a/examples/with-react-native-web/apps/native/assets/adaptive-icon.png
+++ /dev/null
Binary files differ
diff --git a/examples/with-react-native-web/apps/native/assets/favicon.png b/examples/with-react-native-web/apps/native/assets/favicon.png
deleted file mode 100644
index e75f697..0000000
--- a/examples/with-react-native-web/apps/native/assets/favicon.png
+++ /dev/null
Binary files differ
diff --git a/examples/with-react-native-web/apps/native/assets/icon.png b/examples/with-react-native-web/apps/native/assets/icon.png
deleted file mode 100644
index a0b1526..0000000
--- a/examples/with-react-native-web/apps/native/assets/icon.png
+++ /dev/null
Binary files differ
diff --git a/examples/with-react-native-web/apps/native/assets/splash.png b/examples/with-react-native-web/apps/native/assets/splash.png
deleted file mode 100644
index 0e89705..0000000
--- a/examples/with-react-native-web/apps/native/assets/splash.png
+++ /dev/null
Binary files differ
diff --git a/examples/with-react-native-web/apps/native/babel.config.js b/examples/with-react-native-web/apps/native/babel.config.js
deleted file mode 100644
index 73ebf58..0000000
--- a/examples/with-react-native-web/apps/native/babel.config.js
+++ /dev/null
@@ -1,6 +0,0 @@
-module.exports = function (api) {
- api.cache(true);
- return {
- presets: ["babel-preset-expo"],
- };
-};
diff --git a/examples/with-react-native-web/apps/native/index.js b/examples/with-react-native-web/apps/native/index.js
deleted file mode 100644
index 828b356..0000000
--- a/examples/with-react-native-web/apps/native/index.js
+++ /dev/null
@@ -1,8 +0,0 @@
-import { registerRootComponent } from "expo";
-
-import App from "./App";
-
-// registerRootComponent calls AppRegistry.registerComponent('main', () => App);
-// It also ensures that whether you load the app in Expo Go or in a native build,
-// the environment is set up appropriately
-registerRootComponent(App);
diff --git a/examples/with-react-native-web/apps/native/metro.config.js b/examples/with-react-native-web/apps/native/metro.config.js
deleted file mode 100644
index 21f6371..0000000
--- a/examples/with-react-native-web/apps/native/metro.config.js
+++ /dev/null
@@ -1,21 +0,0 @@
-// Learn more https://docs.expo.io/guides/customizing-metro
-const { getDefaultConfig } = require("expo/metro-config");
-const path = require("path");
-
-// Find the workspace root, this can be replaced with `find-yarn-workspace-root`
-const workspaceRoot = path.resolve(__dirname, "../..");
-const projectRoot = __dirname;
-
-const config = getDefaultConfig(projectRoot);
-
-// 1. Watch all files within the monorepo
-config.watchFolders = [workspaceRoot];
-// 2. Let Metro know where to resolve packages, and in what order
-config.resolver.nodeModulesPaths = [
- path.resolve(projectRoot, "node_modules"),
- path.resolve(workspaceRoot, "node_modules"),
-];
-// 3. Force Metro to resolve (sub)dependencies only from the `nodeModulesPaths`
-config.resolver.disableHierarchicalLookup = true;
-
-module.exports = config;
diff --git a/examples/with-react-native-web/apps/native/package.json b/examples/with-react-native-web/apps/native/package.json
deleted file mode 100644
index 68bcb71..0000000
--- a/examples/with-react-native-web/apps/native/package.json
+++ /dev/null
@@ -1,29 +0,0 @@
-{
- "name": "native",
- "version": "1.0.0",
- "main": "index.js",
- "scripts": {
- "start": "expo start",
- "android": "expo start --android",
- "ios": "expo start --ios",
- "web": "expo start --web",
- "eject": "expo eject",
- "dev": "yarn start"
- },
- "dependencies": {
- "expo": "^45.0.6",
- "expo-status-bar": "~1.3.0",
- "react": "18.2",
- "react-dom": "18.1",
- "react-native": "0.68.2",
- "react-native-web": "^0.18.9",
- "ui": "*"
- },
- "devDependencies": {
- "@babel/core": "^7.12.9",
- "@types/react": "^18.0.22",
- "@types/react-native": "^0.69.15",
- "typescript": "^4.7.4"
- },
- "private": true
-}
diff --git a/examples/with-react-native-web/apps/native/tsconfig.json b/examples/with-react-native-web/apps/native/tsconfig.json
deleted file mode 100644
index b9567f6..0000000
--- a/examples/with-react-native-web/apps/native/tsconfig.json
+++ /dev/null
@@ -1,6 +0,0 @@
-{
- "extends": "expo/tsconfig.base",
- "compilerOptions": {
- "strict": true
- }
-}