DEV Community

Talha Javed
Talha Javed

Posted on

Answer: How to set iOS status bar background color in React Native?

set iOS & Android statusbar backgroundColor in react-native

    import React, { Component } from 'react';
    import { Platform, StyleSheet, View, StatusBar } from 'react-native';
    import Constants from 'expo-constants';


    class Statusbar extends Component {

        render() {
            return (
                <View style={styles.StatusBar}>
                    <StatusBar translucent barStyle="light-content" />
                </View>
            );
        }
    }

    const styles =

Top comments (0)