testshallpass / react-native-dropdownalert

An alert to notify users about an error or something else
MIT License
1.85k stars 252 forks source link

Extra height seen after the dropdown alert is closed. #231

Closed kamalpandey closed 3 years ago

kamalpandey commented 3 years ago

Short Description

The drop down alert is working fine but after it is closed extra height equal to the height of the status bars gets added moving the header below. This problem occurred after upgrading Expo from 35 to 36.

Steps to Reproduce / Code Snippets / Usage

Screenshot_20200728-181026 (1) Screenshot_20200728-181038 (1) Screenshot_20200728-181046 (1)

Expected Results

Should not add the new height

Additional Information

import DropdownAlert from "react-native-dropdownalert";
<DropdownAlert
          ref={ref => DropDownHolder.setDropDown(ref)}
          closeInterval={10000}
          panResponderEnabled={false}
          successColor={Colors.positive}
          infoColor={Colors.slate2}
          warnColor={Colors.warning}
          errorColor={Colors.negative}
          renderImage={this.renderLeftImage}
          renderTitle={() => <View />}
          replaceEnabled={false}
          onClose={data => this.handleAlertClose(data)}
          messageStyle={styles.alertMessageStyle}
        />
mmehmetAliIzci commented 3 years ago

I have the same problem even without expo

mmehmetAliIzci commented 3 years ago

Adding updateStatusBar={false} fixed the issue for me @kamalpandey

kamalpandey commented 3 years ago

Thanks @mmehmetAliIzci I already resolved it and forgot to mention here.