Quantcast
Channel: Active questions tagged react-native+ios - Stack Overflow
Viewing all articles
Browse latest Browse all 16552

React Native - StatusBar color iOS and Android

$
0
0

I can't set the color of the status bar on iOS and Android on React Native with Expo.I just managed to hide it.

Code :

import * as React from 'react';import { WebView } from 'react-native-webview';import { StatusBar } from 'react-native'export default class App extends React.Component {   render() {      return <><StatusBar hidden={true} /><WebView source={{ uri: 'https://foo.co' }} style={{ marginTop: 33 }} /></>   }}

I already tried :

<StatusBar hidden={false} barStyle="light-content" />

and :

<StatusBar barStyle = "dark-content" hidden = {true} backgroundColor = "#00BCD4" translucent = {true}/>

I am really confused about how this StatusBar works.

Thank you in advance!


Viewing all articles
Browse latest Browse all 16552

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>