APSL / react-native-keyboard-aware-scroll-view

A ScrollView component that handles keyboard appearance and automatically scrolls to focused TextInput.
MIT License
5.24k stars 643 forks source link

add tabbar height props instead of default #495

Open congnguyen91 opened 2 years ago

congnguyen91 commented 2 years ago

My solution:

import { hasNotch } from 'react-native-device-info';
...
 <KeyboardAwareScrollView
          viewIsInsideTabBar={true}
          tabBarHeight={hasNotch() ? 83 : 64}
          ...
Screen Shot 2021-07-14 at 16 16 13