How to align close button icon on top right corner of ImageBackground component in react-native
Code:
<ImageBackground
source={require('../images/AppIntro/1.png')}
style={{ width: '100%', height: 150 }}
>
<TouchableOpacity>
<Icon name="md-close" style={styles.closeButton} />
</TouchableOpacity>
</ImageBackground>
Edit: i am trying to create a modal(pop up) which will be displayed on button click, so absolute position may not work.