React-native-paper: Snackbar under Keyboard in iOS

Created on 22 Sep 2018  路  14Comments  路  Source: callstack/react-native-paper


Current behaviour

Thank you very much for this wonderful library! I am here to report a tiny bug :)

In iOS, if the keyboard is shown, and we trigger a snackbar, then that snackbar will be hidden under the keyboard. The only way to see it is to close the keyboard. (The version I use it material-next :) )

Expected behaviour

The snackbar is shown above the keyboard, so the user can see it when keyboard is open.

Code sample

Screenshots (if applicable)

What have you tried

Your Environment

| software | version
| --------------------- | -------
| ios or android |
| react-native |
| react-native-paper | material-next
| node |
| npm or yarn |

All 14 comments

Can you provide a Snack? I think this can be fixed without changes in the library.

OK I will do that asap. Could you plz give a template of snack?

OK I will do asap!

Here it is: https://snack.expo.io/@fzyzcjy/snackbar-under-keyboard
Actually, I find that it has the problem on both android and iOS.

@ferrannp @Trancever Hi the snack is posted above :) I am not sure whether you receive any notification from github so I manually at you again

@fzyzcjy Yeah, we got notification, but we don't have much time to work on issues during weekend :) I'll take a look on it today.

@Trancever it does not matter :) have a good day!

@fzyzcjy Check this - https://snack.expo.io/r1V_79g97

@Trancever Thank you! But I think it is a little bit not elegant... Could we make use of https://facebook.github.io/react-native/docs/keyboardavoidingview ? Thanks!

Why would you want to show a snackbar above the keyboard? There's already very little space when an input is focused.

@satys164 Hmmmm... Sounds reasonable! But I want to show some errors to notify users. There errors are irrelevant to input boxes so I cannot attach it to textinput. Thank you!

@fzyzcjy maybe you can show a red banner at top of the screen

@satya164 Good idea I will try it. Thanks!

Was this page helpful?
0 / 5 - 0 ratings

Related issues

timothystewart6 picture timothystewart6  路  4Comments

zachariahtimothy picture zachariahtimothy  路  3Comments

zxccvvv picture zxccvvv  路  4Comments

makhataibar picture makhataibar  路  4Comments

ButuzGOL picture ButuzGOL  路  4Comments