Untitled

 avatar
unknown
plain_text
6 days ago
605 B
2
Indexable
import { View, Text, Button } from 'react-native';
import { useRouter } from 'expo-router';

export default function HomeScreen() {
      const router = useRouter();

        return (
                <View style={{ flex: 1, justifyContent: 'center', alignItems: 'center' }}>
                      <Text>Welcome to Home Screen</Text>
                            <Button title="Go to Login" onPress={() => router.push('/login')} />
                                  <Button title="Go to Signup" onPress={() => router.push('/signup')} />
                                      </View>
        );
}
        )
}
Editor is loading...
Leave a Comment