NativeBase + Exponent Header

后端 未结 5 1104
情话喂你
情话喂你 2021-02-07 08:44

I\'m using NativeBase with Exponent. The Header goes beneath the phone\'s StatusBar. You can see this in the NativeBase demo that Exponent released.

Does anyone

5条回答
  •  渐次进展
    2021-02-07 09:11

    There is a simple solution for this problem just import StatusBar component and use this tag:

    for example in a page:

    /*
      Page with no statusbar
    */
    import React, {Component} from 'react'
    import {Platform, View, Text, StatusBar} from 'react-native'
    
    export default class App extends React.Component{
      render(){
        return(
            
            
        );
      }
    }
    

    This Component work well with expo and react-native-cli latest virsions. for more help you can use ReactNative docs for StatusBar

提交回复
热议问题