react-native-easy-toast icon indicating copy to clipboard operation
react-native-easy-toast copied to clipboard

Toast appears behind tabs on iOS when using React Navigation TabNavigator

Open dannyshisler opened this issue 7 years ago • 6 comments

When using the React Navigation TabNavigator on iOS (https://reactnavigation.org/docs/navigators/tab) the tabs appear at the bottom of the screen. When the Toast appears in the default position of "bottom" the Toast appears behind the tabs.

Changing the zIndex of the Toast style doesn't seem to make any difference.

The only way I've been able to manage this for now is using the positionValue to raise the position of the Toast above the tabs.

dannyshisler avatar Jul 03 '17 15:07 dannyshisler

Same issue for me. I'm using Modal but Toast appears behind the modal. I need that toast to be above the Modal.

bhagwans avatar Jul 05 '17 06:07 bhagwans

我也出现同样的问题,Toast提示框出现在了Tabbar下面,Tabbar使用的是react-native-tab-navigator

hejunbinlan avatar Jul 26 '17 02:07 hejunbinlan

Hello, you can wrap your Nav component like this:

    <View style={{flex: 1, zIndex: 100}}>
      <Toast
        ref={(toast) => {
          this.toast = toast
        }}
      />
      <YourNavRoor />
    </View>

amensouissi avatar Aug 28 '17 13:08 amensouissi

Did anyone get this working? I can put my toast as high as I'd like, it's still behind the modal

Sam-Hoult avatar Jul 19 '18 01:07 Sam-Hoult

i made a pull request you can check. hope it help you pull request #70

mahdieh-dev avatar Mar 07 '19 14:03 mahdieh-dev

Any chance we can get that pull requrest approved?

Aryk avatar Jun 05 '20 20:06 Aryk