loading...

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

twitter logo github logo ・1 min read

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 =
twitter logo DISCUSS
Classic DEV Post from Apr 3 '19

How do you feel about chasing internet points, badges and the gamification of everything?

I'll admit up front, I'm chasing the dev.to 16-week streak posting badge and am...

Talha Javed profile image
MERN Stack Developer 💻 - Programmer 👨‍💻