Advertisement
Felanpro

React Native (Images)

May 14th, 2023
42
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.63 KB | None | 0 0
  1. import { StatusBar } from 'expo-status-bar';
  2. import { StyleSheet, Text, View, Image, SafeAreaView } from 'react-native';
  3.  
  4. export default function App() {
  5.  
  6. const handlePress = () => console.log("Text pressed");
  7.  
  8. return (
  9. <SafeAreaView style={styles.container}>
  10.  
  11. <Text>Hello world!</Text>
  12. <Image
  13. blurRadius = {10}
  14. source = {require('./assets/favicon.png')} />
  15.  
  16. <StatusBar style="auto" />
  17.  
  18. </SafeAreaView>
  19. );
  20. }
  21.  
  22. const styles = StyleSheet.create({
  23. container: {
  24. flex: 1,
  25. backgroundColor: 'gray',
  26. justifyContent: "center",
  27. alignItems: "center"
  28. },
  29. });
  30.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement