mirror of
https://github.com/OneUptime/oneuptime.git
synced 2026-04-06 00:32:12 +02:00
chore: add @oneuptime/common dependency and update tsconfig to exclude Common directory
This commit is contained in:
@@ -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
10665
MobileApp/package-lock.json
generated
File diff suppressed because it is too large
Load Diff
@@ -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",
|
||||
|
||||
@@ -21,6 +21,7 @@
|
||||
"**/*.tsx"
|
||||
],
|
||||
"exclude": [
|
||||
"node_modules"
|
||||
"node_modules",
|
||||
"../Common"
|
||||
]
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user