react-native-ui-lib icon indicating copy to clipboard operation
react-native-ui-lib copied to clipboard

Can we add a keyboardVerticalOffset to KeyboardTrackingView?

Open bneigher opened this issue 4 years ago • 4 comments

Which component?

KeyboardTrackingView

What is the new feature?

It would be nice to be able to define an offset (top of the screen to bottom of "View" so that if there is anything below a component that should NOT move to accommodate the keyboard - the avoiding components know not to move too far up the screen.

Code snippet

<KeyboardTrackingView
   keyboardVerticalOffset={180}
>
  {this.props.children}
</KeyboardTrackingView>

This behavior could be similar to KeyboardAvoidingView's property.

ezgif-7-b140f587e14b

Perhaps this is already supported with addBottomView but no where is this property documented...

bneigher avatar Oct 13 '21 02:10 bneigher

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] avatar Dec 12 '21 03:12 stale[bot]

This issue is same in IOS for KeyboardAccessoryView component.

pinchez254 avatar Feb 11 '22 14:02 pinchez254

@Inbal-Tish Is the new feature solve this issue by any chance? If it does, can you instruct the users on how to use it

ethanshar avatar Mar 28 '22 08:03 ethanshar

@bneigher Hi. Try passing 'ususBottomTabs' prop and see if it solves the issue.

Inbal-Tish avatar Mar 28 '22 09:03 Inbal-Tish