trying out screen stack again.

This commit is contained in:
Jordan Hewitt
2025-02-12 12:37:35 -08:00
parent 855ea871a8
commit 078cc95765
46 changed files with 950 additions and 4 deletions

View File

@ -1,7 +1,7 @@
import { LanguageSelection } from "@/components/LanguageSelection";
import { Link, Stack } from "expo-router";
import { useState } from "react";
import { Image, Text, View, StyleSheet } from "react-native";
import { Image, Text, View, StyleSheet, Button, Pressable } from "react-native";
import { Translator, language_matrix_entry } from "./i18n/api";
import ConversationThread from "@/components/ConversationThread";
import { Conversation } from "./lib/conversation";
@ -18,6 +18,7 @@ function LogoTitle() {
export default function Home() {
const [lang, setLang] = useState<language_matrix_entry | undefined>();
const [conversation, setConversation] = useState<Conversation | undefined>();
const [setShowSettings, showSettings] = useState<boolean>(false);
function onLangSelected(lang: language_matrix_entry | undefined) {
console.log("Language %s selected", lang?.code);
@ -38,6 +39,9 @@ export default function Home() {
return (
<View style={styles.container}>
<Pressable>
<Text>Settings</Text>
</Pressable>
<Stack.Screen
options={{
title: "My home",