diff --git a/aris/.gitignore b/aris/.gitignore new file mode 100644 index 0000000..2ff55da --- /dev/null +++ b/aris/.gitignore @@ -0,0 +1,24 @@ +node_modules/ +.expo/ +dist/ +npm-debug.* +*.jks +*.p8 +*.p12 +*.key +*.mobileprovision +*.orig.* +web-build/ +# expo router +expo-env.d.ts + + + +ios +android + +# macOS +.DS_Store + +# Temporary files created by Metro to check the health of the file watcher +.metro-health-check* \ No newline at end of file diff --git a/aris/app.json b/aris/app.json new file mode 100644 index 0000000..80ee23c --- /dev/null +++ b/aris/app.json @@ -0,0 +1,44 @@ +{ + "expo": { + "name": "aris", + "slug": "aris", + "version": "1.0.0", + + "scheme": "aris", + "platforms": ["ios", "android"], + "web": { + "bundler": "metro", + "output": "static", + "favicon": "./assets/favicon.png" + }, + "plugins": ["expo-router"], + "experiments": { + "typedRoutes": true, + + "tsconfigPaths": true + }, + + "orientation": "portrait", + "icon": "./assets/icon.png", + + "userInterfaceStyle": "light", + + "splash": { + "image": "./assets/splash.png", + "resizeMode": "contain", + "backgroundColor": "#ffffff" + }, + "assetBundlePatterns": ["**/*"], + "ios": { + "supportsTablet": true, + "bundleIdentifier": "sh.nym.aris" + }, + "android": { + "package": "sh.nym.aris", + "adaptiveIcon": { + "foregroundImage": "./assets/adaptive-icon.png", + "backgroundColor": "#ffffff" + } + } + } +} diff --git a/aris/app/(tabs)/_layout.tsx b/aris/app/(tabs)/_layout.tsx new file mode 100644 index 0000000..ba04a8d --- /dev/null +++ b/aris/app/(tabs)/_layout.tsx @@ -0,0 +1,81 @@ +import { Ionicons } from "@expo/vector-icons"; +import { Tabs } from "expo-router"; + +const iconSize = 22; + +export default function TabLayout() { + return ( + + ( + + ), + }} + /> + ( + + ), + }} + /> + ( + + ), + }} + /> + ( + + ), + }} + /> + ( + + ), + }} + /> + + ); +} diff --git a/aris/app/(tabs)/index.tsx b/aris/app/(tabs)/index.tsx new file mode 100644 index 0000000..5b09c48 --- /dev/null +++ b/aris/app/(tabs)/index.tsx @@ -0,0 +1,22 @@ +import { View } from "react-native"; + +import { Container } from "@/components/Container"; +import { Text } from "@/components/ui/text"; + +export default function BleScreen() { + return ( + + + BLE + + Port of SwiftUI BleStatusView will live here. + + + + ); +} + +const styles = { + container: "flex flex-1 bg-white", + subtitle: "mt-2 text-sm text-muted-foreground", +}; diff --git a/aris/app/(tabs)/orchestrator.tsx b/aris/app/(tabs)/orchestrator.tsx new file mode 100644 index 0000000..22219cf --- /dev/null +++ b/aris/app/(tabs)/orchestrator.tsx @@ -0,0 +1,22 @@ +import { View } from "react-native"; + +import { Container } from "@/components/Container"; +import { Text } from "@/components/ui/text"; + +export default function OrchestratorScreen() { + return ( + + + Orchestrator + + Port of SwiftUI OrchestratorView will live here. + + + + ); +} + +const styles = { + container: "flex flex-1 bg-white", + subtitle: "mt-2 text-sm text-muted-foreground", +}; diff --git a/aris/app/(tabs)/settings.tsx b/aris/app/(tabs)/settings.tsx new file mode 100644 index 0000000..00141a6 --- /dev/null +++ b/aris/app/(tabs)/settings.tsx @@ -0,0 +1,22 @@ +import { View } from "react-native"; + +import { Container } from "@/components/Container"; +import { Text } from "@/components/ui/text"; + +export default function SettingsScreen() { + return ( + + + Settings + + Port of SwiftUI SettingsView will live here. + + + + ); +} + +const styles = { + container: "flex flex-1 bg-white", + subtitle: "mt-2 text-sm text-muted-foreground", +}; diff --git a/aris/app/(tabs)/stocks.tsx b/aris/app/(tabs)/stocks.tsx new file mode 100644 index 0000000..8bdf744 --- /dev/null +++ b/aris/app/(tabs)/stocks.tsx @@ -0,0 +1,22 @@ +import { View } from "react-native"; + +import { Container } from "@/components/Container"; +import { Text } from "@/components/ui/text"; + +export default function StocksScreen() { + return ( + + + Stocks + + Port of SwiftUI StockSettingsView will live here. + + + + ); +} + +const styles = { + container: "flex flex-1 bg-white", + subtitle: "mt-2 text-sm text-muted-foreground", +}; diff --git a/aris/app/(tabs)/todos.tsx b/aris/app/(tabs)/todos.tsx new file mode 100644 index 0000000..4d31647 --- /dev/null +++ b/aris/app/(tabs)/todos.tsx @@ -0,0 +1,22 @@ +import { View } from "react-native"; + +import { Container } from "@/components/Container"; +import { Text } from "@/components/ui/text"; + +export default function TodosScreen() { + return ( + + + Todos + + Port of SwiftUI TodosView will live here. + + + + ); +} + +const styles = { + container: "flex flex-1 bg-white", + subtitle: "mt-2 text-sm text-muted-foreground", +}; diff --git a/aris/app/+html.tsx b/aris/app/+html.tsx new file mode 100644 index 0000000..2fe2848 --- /dev/null +++ b/aris/app/+html.tsx @@ -0,0 +1,46 @@ +import { ScrollViewStyleReset } from 'expo-router/html'; + +// This file is web-only and used to configure the root HTML for every +// web page during static rendering. +// The contents of this function only run in Node.js environments and +// do not have access to the DOM or browser APIs. +export default function Root({ children }: { children: React.ReactNode }) { + return ( + + + + + + {/* + This viewport disables scaling which makes the mobile website act more like a native app. + However this does reduce built-in accessibility. If you want to enable scaling, use this instead: + + */} + + {/* + Disable body scrolling on web. This makes ScrollView components work closer to how they do on native. + However, body scrolling is often nice to have for mobile web. If you want to enable it, remove this line. + */} + + + {/* Using raw CSS styles as an escape-hatch to ensure the background color never flickers in dark-mode. */} +