This question was already answered, but the proposed solution is not working anymore:
return (
<Fragment>
<SafeAreaView style={{ flex:0, backgroundColor: 'red' }} />
<SafeAreaView style={{ flex:1, backgroundColor: 'gray' }}>
<View style={{ flex: 1, backgroundColor: 'white' }} />
</SafeAreaView>
</Fragment>
);
Should give me:
Gave me instead:
As you can see, the view order is not the same.
I have the same issue on iOS.
I am using react 16.13.1
, maybe something changed since the last answer?
What are my alternatives?
Thanks