I want to achieve the following Header Style with flexbox in React Native. The Image should always be centered and the Arrow Button must always stick on the left side.
What I tried so far:
<View style={{ flexDirection: 'row' }}>
<Ionicons name="chevron-back" size={32} />
<Image
style={{ height: 120, width: 120 }}
source={{
uri: imgUrl,
}}
/>
</View>
2
Answers
Center the image with
justifyContent
and use absoluteposition
for the arrow.Example:-