You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This results in no sort of feedback appearing when tapping to switch the tab. On Android a Ripple is rendered.
This is especially bad when the entire tab bar is configured to only a single solid color (no separate colors per screen).
I'm using the bottom tab navigator via @react-navigation/material-bottom-tabs.
Expected behaviour
I think it would be a good idea to display some sort of visual indication on tap. A TouchableHighlight might make more sense. The Facebook app on iOS displays a light gradient when tapping its bottom bar.
Screenshots (if applicable)
What have you tried
There appears to be a renderTouchable property, but when using createMaterialBottomTabNavigator from @react-navigation/material-bottom-tabs it is never called. Example below:
constTab=createMaterialBottomTabNavigator();<Tab.NavigatorbarStyle={styles.barStyle}renderTouchable={()=>{console.log("foo")/* never called */}}>
renderTouchable is not really documented, and TouchableProps is not exported so it makes it really hard to use. Seems to have been added in #1901 but it's usage is unclear.
Your Environment
software
version
react-native
0.63.1
react-native-paper
3.10.1
The text was updated successfully, but these errors were encountered:
Hello 👋, this issue has been open for more than 2 months with no activity on it. If the issue is still present in the latest version, please leave a comment within 7 days to keep it open, otherwise it will be closed automatically. If you found a solution on workaround for the issue, please comment here for others to find. If this issue is critical for you, please consider sending a pull request to fix the issue.
Current behaviour
The MaterialBottomTabNavigator uses
TouchableWithoutFeedback
on iOS:https://github.com/callstack/react-native-paper/blob/master/src/components/BottomNavigation.tsx#L300
This results in no sort of feedback appearing when tapping to switch the tab. On Android a Ripple is rendered.
This is especially bad when the entire tab bar is configured to only a single solid color (no separate colors per screen).
I'm using the bottom tab navigator via
@react-navigation/material-bottom-tabs
.Expected behaviour
I think it would be a good idea to display some sort of visual indication on tap. A
TouchableHighlight
might make more sense. The Facebook app on iOS displays a light gradient when tapping its bottom bar.Screenshots (if applicable)
What have you tried
There appears to be a
renderTouchable
property, but when usingcreateMaterialBottomTabNavigator
from@react-navigation/material-bottom-tabs
it is never called. Example below:renderTouchable
is not really documented, andTouchableProps
is not exported so it makes it really hard to use. Seems to have been added in #1901 but it's usage is unclear.Your Environment
The text was updated successfully, but these errors were encountered: