chore: add @oneuptime/common dependency and update tsconfig to exclude Common directory

This commit is contained in:
Simon Larsen
2025-10-12 10:05:18 +01:00
parent 2ca1c64532
commit 848bfb358f
4 changed files with 10677 additions and 5 deletions

View File

@@ -1,13 +1,24 @@
import React from "react";
import React, { useEffect, useState } from "react";
import { StatusBar } from "expo-status-bar";
import { Text, View } from "react-native";
import Styles from "./Styles";
import ObjectID from "@oneuptime/common/Types/ObjectID";
export default function App(): React.ReactElement {
const [objectId, setObjectId] = useState<ObjectID | null>(null);
useEffect(() => {
const newObjectId: ObjectID = ObjectID.generate();
setObjectId(newObjectId);
}, []);
return (
<View style={Styles.container}>
<Text style={Styles.title}>Welcome to OneUptime Mobile</Text>
<Text style={Styles.subtitle}>Your monitoring app on the go</Text>
{objectId && (
<Text style={Styles.subtitle}>Generated Object ID: {objectId.toString()}</Text>
)}
<StatusBar style="auto" />
</View>
);

10665
MobileApp/package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@@ -9,6 +9,7 @@
"web": "expo start --web"
},
"dependencies": {
"@oneuptime/common": "*",
"expo": "~51.0.28",
"expo-status-bar": "~1.12.1",
"react": "18.2.0",

View File

@@ -21,6 +21,7 @@
"**/*.tsx"
],
"exclude": [
"node_modules"
"node_modules",
"../Common"
]
}