Hello there,
How can I native components like ImageBackground from react-native?
Example?
import React from ‘react’;
import { View, Image, StyleSheet, ImageBackground } from ‘react-native’;
const styles = StyleSheet.create({
container: {
paddingTop: 50,
},
tinyLogo: {
width: 50,
height: 50,
},
logo: {
width: 66,
height: 58,
},
});
const DisplayAnImage = () => {
return (
<Image
style={styles.tinyLogo}
source={require(’@expo/snack-static/react-native-logo.png’)}
/>