import React from 'react';
import { View, Image, StyleSheet, Text, ImageBackground } from 'react-native';
const styles = StyleSheet.create({
container: {
flex: 1,
flexDirection: 'row',
justifyContent: 'space-between',
alignItems: 'center',
},
leftSection: {
flex: 0.7,
},
rightSection: {
flex: 0.2,
backgroundColor: '#ccc',
},
bgContainer: {
position: 'relative',
margin: 0,
},
bgImg: {
width: '100%',
},
coil: {
position: 'absolute',
top: '49.55%',
left: '24.3%',
width: '17.4418605%',
},
evaporator: {
position: 'absolute',
top: '7.25%',
left: '54.5%',
width: '11.627907%',
},
compressor: {
position: 'absolute',
top: '53.15%',
left: '59.2%',
width: '13.0813953%',
},
componentImg: {
width: '100%',
},
});
const App = () => {
return (
<View style={styles.container}>
<View style={styles.leftSection}>
<View style={styles.bgContainer}>
<ImageBackground
source={{ uri: 'https://i.stack.imgur.com/AfygH.png' }}
style={styles.bgImg}
>
<View style={styles.coil}>
<Image
source={{ uri: 'https://i.stack.imgur.com/SKUms.png' }}
style={styles.componentImg}
/>
</View>
<View style={styles.evaporator}>
<Image
source={{ uri: 'https://i.stack.imgur.com/spv58.png' }}
style={styles.componentImg}
/>
</View>
<View style={styles.compressor}>
<Image
source={{ uri: 'https://i.stack.imgur.com/fzSaH.png' }}
style={styles.componentImg}
/>
</View>
</ImageBackground>
</View>
</View>
<View style={styles.rightSection}>
<Text>Right Section</Text>
</View>
</View>
);
};
export default App;