Ali Hassan
Ali Hassan

Reputation: 116

The Statusbar does not work with false headerShown

I am using StatusBar it works fine but when I removed header from react-navigation it stops working. What am I doing wrong?

I am facing this issue on IOS.

<StatusBar barStyle="dark-content" backgroundColor={colors.ICE_BLUE} />
<Tab.Screen name="Wallet" component={WalletScreen} options={{ headerShown: false }} />

Upvotes: 4

Views: 1011

Answers (1)

Shoaib Khan
Shoaib Khan

Reputation: 1210

Use SafeAreaView Component in your WalletScreen.

Upvotes: 1

Related Questions