Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import { StatusBar } from 'expo-status-bar';
- import { StyleSheet, Text, View, TouchableWithoutFeedback, TouchableOpacity, TouchableHighlight, Image, SafeAreaView } from 'react-native';
- export default function App() {
- const handlePress = () => console.log("Text pressed");
- return (
- <SafeAreaView style={styles.container}>
- <Text>Hello world!</Text>
- <TouchableHighlight onPress={() => console.log("image tapped")}>
- <Image
- blurRadius = {1}
- source = {require('./assets/favicon.png')}
- />
- </TouchableHighlight>
- <StatusBar style="auto" />
- </SafeAreaView>
- );
- }
- const styles = StyleSheet.create({
- container: {
- flex: 1,
- backgroundColor: 'gray',
- justifyContent: "center",
- alignItems: "center"
- },
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement