trying out screen stack again.
This commit is contained in:
@ -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",
|
||||
|
Reference in New Issue
Block a user