Skip to content

Android Back active style Error #16654

@betsun2017

Description

@betsun2017

Is this a bug report?

NO

Have you read the Contributing Guidelines?

YES

Environment

Environment:
OS: macOS Sierra 10.12.6
Node: 8.4.0
Yarn: 0.27.5
npm: 5.4.0
Watchman: 4.7.0
Xcode: Xcode 8.3.2 Build version 8E3004b
Android Studio: 2.3 AI-162.4069837

Packages: (wanted => installed)
react-native: 0.47.1 => 0.47.1
react: 16.0.0-alpha.12 => 16.0.0-alpha.12

Target Platform:Andorid (6.0)

Steps to Reproduce

1.Switch program to background
2.Wait a moment
3.Switch to foreground

Expected Behavior

I hope it works。
there is no interval between the text and the status bar

Actual Behavior

Not every time, not everyone, but with great regularity。
I found StatusBar is show ,but there are 20 dp between the text and the status bar.

Reproducible Demo

"use strict";
import React, {Component} from 'react';
import {
    View,
    Text,
    StatusBar,
    AppRegistry
} from 'react-native';
 export default class Pghd extends Component {

render() {

   return (
         <View style = {{flex:1,marginTop:20}}>
                  <StatusBar backgroudColor = {"#000"} barStyle= "default" translucent = {true}/>
                  <Text>{"this is test"}</Text>
          </View>
    );
  }
}
AppRegistry.registerComponent('pghd', () => Pghd);`

Metadata

Metadata

Assignees

No one assigned

    Labels

    StaleThere has been a lack of activity on this issue and it may be closed soon.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions