Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 22 additions & 0 deletions versioned_docs/version-6.x/tab-based-navigation.md
Original file line number Diff line number Diff line change
Expand Up @@ -237,3 +237,25 @@ For example, React Navigation's tab navigator takes care of handling the Android
## A tab navigator contains a stack and you want to hide the tab bar on specific screens

[See the documentation here](hiding-tabbar-in-screens.md)

## A tab navigator contains a stack and you want to use KeyboardAvoidingView to prevent hidden TextInput

Make sure you to wrap KeyboardAvoidingView around the main tab navigator

```js
function TabNavigator() {
return (
<KeyboardAvoidingView
behavior={Platform.OS === 'ios' ? 'padding' : 'height'}
style={{ flex: 1 }}>
<Tab.Navigator
screenOptions={{
tabBarHideOnKeyboard: true,
headerShown: false,
}}>
<Tab.Screen name="Tab" component={StackContainer} />
</Tab.Navigator>
</KeyboardAvoidingView>
);
}
```