Cleaning, updating libraries
This commit is contained in:
parent
299bab4e6a
commit
eb1309f163
@ -10,7 +10,7 @@ import themes from '@/assets/themes'
|
|||||||
import log from "@/util/log"
|
import log from "@/util/log"
|
||||||
|
|
||||||
// Prevent the splash screen from auto-hiding before asset loading is complete.
|
// Prevent the splash screen from auto-hiding before asset loading is complete.
|
||||||
SplashScreen.preventAutoHideAsync();
|
void SplashScreen.preventAutoHideAsync();
|
||||||
|
|
||||||
export default function RootLayout() {
|
export default function RootLayout() {
|
||||||
return (
|
return (
|
||||||
@ -34,7 +34,7 @@ function InnerRootLayout() {
|
|||||||
});
|
});
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
if (loaded) {
|
if (loaded) {
|
||||||
SplashScreen.hideAsync();
|
void SplashScreen.hideAsync();
|
||||||
}
|
}
|
||||||
}, [loaded]);
|
}, [loaded]);
|
||||||
|
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
import {Appbar, Button, Portal, Text, useTheme} from "react-native-paper";
|
import {Appbar, Button, Text, useTheme} from "react-native-paper";
|
||||||
import {View} from "react-native";
|
import {View} from "react-native";
|
||||||
import styles from "@/assets/styles";
|
import styles from "@/assets/styles";
|
||||||
import React from "react";
|
import React from "react";
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
import { Dialog, Portal, useTheme } from "react-native-paper";
|
import { Dialog, Portal } from "react-native-paper";
|
||||||
import React, {useEffect} from "react";
|
import React, {useEffect} from "react";
|
||||||
import Broken from "@/components/Broken";
|
import Broken from "@/components/Broken";
|
||||||
|
|
||||||
@ -6,8 +6,6 @@ interface LocationProps {
|
|||||||
visible: boolean;
|
visible: boolean;
|
||||||
}
|
}
|
||||||
const Location: React.FC<LocationProps> = ({ visible }) => {
|
const Location: React.FC<LocationProps> = ({ visible }) => {
|
||||||
const theme = useTheme();
|
|
||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
if (visible) {
|
if (visible) {
|
||||||
|
|
||||||
|
@ -4,6 +4,7 @@ import React, {useState} from "react";
|
|||||||
import styles from "@/assets/styles";
|
import styles from "@/assets/styles";
|
||||||
import About from "@/components/About";
|
import About from "@/components/About";
|
||||||
import Privacy from "@/components/Privacy";
|
import Privacy from "@/components/Privacy";
|
||||||
|
import Broken from "@/components/Broken";
|
||||||
|
|
||||||
const TopNav = ({ toggleProfile }: { toggleProfile: () => void; }) => {
|
const TopNav = ({ toggleProfile }: { toggleProfile: () => void; }) => {
|
||||||
const theme = useTheme();
|
const theme = useTheme();
|
||||||
@ -57,6 +58,15 @@ const TopNav = ({ toggleProfile }: { toggleProfile: () => void; }) => {
|
|||||||
</Button>
|
</Button>
|
||||||
</Dialog.Actions>
|
</Dialog.Actions>
|
||||||
</Dialog>
|
</Dialog>
|
||||||
|
<Dialog visible={bugVisible} onDismiss={() => setBugVisible(false)} style={{ backgroundColor: theme.colors.primaryContainer }}>
|
||||||
|
<Dialog.Title style={{ color: theme.colors.primary, textAlign: 'center' }}>Privacy Policy</Dialog.Title>
|
||||||
|
<Broken />
|
||||||
|
<Dialog.Actions style={{ justifyContent: "center" }}>
|
||||||
|
<Button onPress={() => setBugVisible(false)} mode="contained" style={{ backgroundColor: theme.colors.inversePrimary }} labelStyle={{ color: theme.colors.primary }}>
|
||||||
|
Close
|
||||||
|
</Button>
|
||||||
|
</Dialog.Actions>
|
||||||
|
</Dialog>
|
||||||
</Portal>
|
</Portal>
|
||||||
</View>
|
</View>
|
||||||
);
|
);
|
||||||
|
8
package-lock.json
generated
8
package-lock.json
generated
@ -13,7 +13,7 @@
|
|||||||
"@react-native-async-storage/async-storage": "~2.1.1",
|
"@react-native-async-storage/async-storage": "~2.1.1",
|
||||||
"@react-navigation/bottom-tabs": "^7.2.0",
|
"@react-navigation/bottom-tabs": "^7.2.0",
|
||||||
"@react-navigation/native": "^7.0.14",
|
"@react-navigation/native": "^7.0.14",
|
||||||
"axios": "~1.7.9",
|
"axios": "~1.8.4",
|
||||||
"expo": "~52.0.25",
|
"expo": "~52.0.25",
|
||||||
"expo-blur": "~14.0.2",
|
"expo-blur": "~14.0.2",
|
||||||
"expo-constants": "~17.0.4",
|
"expo-constants": "~17.0.4",
|
||||||
@ -5197,9 +5197,9 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/axios": {
|
"node_modules/axios": {
|
||||||
"version": "1.7.9",
|
"version": "1.8.4",
|
||||||
"resolved": "https://registry.npmjs.org/axios/-/axios-1.7.9.tgz",
|
"resolved": "https://registry.npmjs.org/axios/-/axios-1.8.4.tgz",
|
||||||
"integrity": "sha512-LhLcE7Hbiryz8oMDdDptSrWowmB4Bl6RCt6sIJKpRB4XtVf0iEgewX3au/pJqm+Py1kCASkb/FFKjxQaLtxJvw==",
|
"integrity": "sha512-eBSYY4Y68NNlHbHBMdeDmKNtDgXWhQsJcGqzO3iLUM0GraQFSS9cVgPX5I9b3lbdFKyYoAEGAZF1DwhTaljNAw==",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"follow-redirects": "^1.15.6",
|
"follow-redirects": "^1.15.6",
|
||||||
|
@ -43,7 +43,7 @@
|
|||||||
"react-use-websocket": "~4.13.0",
|
"react-use-websocket": "~4.13.0",
|
||||||
"@react-native-async-storage/async-storage": "~2.1.1",
|
"@react-native-async-storage/async-storage": "~2.1.1",
|
||||||
"expo-image-picker": "~16.0.6",
|
"expo-image-picker": "~16.0.6",
|
||||||
"axios": "~1.7.9",
|
"axios": "~1.8.4",
|
||||||
"uuid": "~11.0.5",
|
"uuid": "~11.0.5",
|
||||||
"react-native-paper": "~5.13.1",
|
"react-native-paper": "~5.13.1",
|
||||||
"react-native-vector-icons": "~10.2.0",
|
"react-native-vector-icons": "~10.2.0",
|
||||||
|
Loading…
Reference in New Issue
Block a user