You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
48 lines
1022 B
48 lines
1022 B
import React from "react";
|
|
import { View, Text, TouchableOpacity, StyleSheet } from "react-native";
|
|
import { useNavigation } from "@react-navigation/native";
|
|
|
|
const HomeScreen = () => {
|
|
const navigation = useNavigation();
|
|
|
|
return (
|
|
<View style={styles.container}>
|
|
{/* <View style={styles.circle} /> */}
|
|
<TouchableOpacity
|
|
style={styles.button}
|
|
onPress={() => navigation.navigate("Camera")}
|
|
>
|
|
<Text style={styles.buttonText}>Scan Code</Text>
|
|
</TouchableOpacity>
|
|
</View>
|
|
);
|
|
};
|
|
|
|
const styles = StyleSheet.create({
|
|
container: {
|
|
flex: 1,
|
|
justifyContent: "center",
|
|
alignItems: "center",
|
|
backgroundColor: "#000",
|
|
},
|
|
circle: {
|
|
width: 100,
|
|
height: 100,
|
|
borderRadius: 50,
|
|
backgroundColor: "#fff",
|
|
marginBottom: 20,
|
|
},
|
|
button: {
|
|
backgroundColor: "#fff",
|
|
paddingHorizontal: 20,
|
|
paddingVertical: 10,
|
|
borderRadius: 5,
|
|
},
|
|
buttonText: {
|
|
color: "#000",
|
|
fontSize: 16,
|
|
},
|
|
});
|
|
|
|
export default HomeScreen;
|