diff --git a/app/+not-found.tsx b/app/+not-found.tsx new file mode 100644 index 0000000..69e9df2 --- /dev/null +++ b/app/+not-found.tsx @@ -0,0 +1,38 @@ +import { Link, Stack } from 'expo-router'; +import { StyleSheet, Text, View } from 'react-native'; + +export default function NotFoundScreen() { + return ( + <> + + + This screen does not exist. + + + Go to home screen + + + + ); +} + +const styles = StyleSheet.create({ + container: { + flex: 1, + alignItems: 'center', + justifyContent: 'center', + padding: 20, + }, + title: { + fontSize: 20, + fontWeight: 'bold', + }, + link: { + marginTop: 15, + paddingVertical: 15, + }, + linkText: { + fontSize: 14, + color: '#2e78b7', + }, +}); diff --git a/app/_layout.tsx b/app/_layout.tsx index d0fc518..a970afb 100644 --- a/app/_layout.tsx +++ b/app/_layout.tsx @@ -28,7 +28,7 @@ export default function RootLayout() { - + diff --git a/app/settings/index.tsx b/app/settings/index.tsx index 8ae4ead..3a9e692 100644 --- a/app/settings/index.tsx +++ b/app/settings/index.tsx @@ -215,7 +215,7 @@ export default function SettingsScreen() { - LocalAiApp - Cross Platform Version + LocalMind - Cross Platform Version diff --git a/babel.config.js b/babel.config.js new file mode 100644 index 0000000..ee8566b --- /dev/null +++ b/babel.config.js @@ -0,0 +1,16 @@ +module.exports = function (api) { + api.cache(true); + return { + presets: [ + [ + 'babel-preset-expo', + { + // Dependencias (zustand/middleware) usam `import.meta.env`, que nao existe + // no bundle web do Metro (script classico) e quebrava a hidratacao do app. + // O polyfill do Expo troca por `globalThis.__ExpoImportMetaRegistry`. + unstable_transformImportMeta: true, + }, + ], + ], + }; +};