sekizlipenguen / react-native-popup-confirm-toast

MIT License
89 stars 12 forks source link

fix: android bottom covered #11

Closed wengqianshan closed 1 year ago

wengqianshan commented 1 year ago

Snip20221208_1 On some android phones, the bottom will be covered by the popup element

sekizlipenguen commented 1 year ago

Wow! May I know the android version?

Some android phones were having the reverse problem :/

wengqianshan commented 1 year ago

Thank you for your reply. I am reproducing this problem in the android6.0.1 emulator, the reason is that many users reported that the tabbar at the bottom of the application cannot be clicked, and then locate the problem of being covered.

wengqianshan commented 1 year ago

Sorry, I forgot the most important point: I use expo-status-bar in my project, it will automatically set the statusbar to translucent in the Android environment, when I specify this component translucent={false}, the bottom covered issues are resolved. But then I lost the top translucency

sekizlipenguen commented 1 year ago

Hi,

new update. These new features might work for you.

statusBarTranslucent: false or true; or

import { StatusBar} from 'react-native'; 
statusBarTranslucent:true,
onCloseComplete: () => {
    StatusBar. setTranslucent(false);
},
Toast.show({
      title: 'I\'m Eight!',
      text: 'The best gift I received in this life are the codes. They are worlds inside the worlds.',
      backgroundColor: '#702c91',
      timeColor: '#440f5f',
      timing: 3000,
      icon: <Icon name={'check'} color={'#fff'} size={31}/>,
      position: 'top',
      statusBarTranslucent: false,
      statusBarType:'light-content',
      onCloseComplete: () => {
        alert('onCloseComplete');
      },
      onOpenComplete: () => {
        alert('onOpenComplete');
      },
    });