This repository has been archived by the owner on May 7, 2022. It is now read-only.
Releases: flyerhq/react-native-keyboard-accessory-view
Releases · flyerhq/react-native-keyboard-accessory-view
v2.0.0
onContentBottomInsetUpdate
and panResponderPositionY
functions were causing re-renders of the whole scrollable component on each keyboard animation, and we decided to replace them with renderScrollable
Breaking changes
onContentBottomInsetUpdate
andpanResponderPositionY
props were removedrenderBackgroundNode
renamed torenderBackground
renderScrollable
is a required function which will providepanHandlers
and will expect a scrollable component
import { KeyboardAccessoryView } from '@flyerhq/react-native-keyboard-accessory-view'
import { GestureResponderHandlers } from 'react-native'
// ...
const renderScrollable = (panHandlers: GestureResponderHandlers) => (
// Can be anything scrollable
<ScrollView keyboardDismissMode='interactive' {...panHandlers} />
)
// ...
return (
<KeyboardAccessoryView renderScrollable={renderScrollable}>
// Your accessory view
</KeyboardAccessoryView>
)
v1.6.0
Optionally use keyboard listeners on Android. Thanks @tankers746 for the PR!
v1.5.1
Code cleanup
v1.5.0
v1.4.1
Code cleanup
v1.4.0
• Add props to fine-tune content offsets if needed
• Update dependencies
v1.3.0
• Update example to RN 0.63
• Support older versions by replacing useWindowDimensions
hook with a Dimensions.get('window')
v1.2.0
v1.1.1
Update dependencies
v1.1.0
Updated example