Skip to content
This repository has been archived by the owner on May 7, 2022. It is now read-only.

Releases: flyerhq/react-native-keyboard-accessory-view

v2.0.0

23 Oct 20:53
b3c6898
Compare
Choose a tag to compare

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 and panResponderPositionY props were removed
  • renderBackgroundNode renamed to renderBackground
  • renderScrollable is a required function which will provide panHandlers 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

21 Oct 10:14
Compare
Choose a tag to compare

Optionally use keyboard listeners on Android. Thanks @tankers746 for the PR!

v1.5.1

20 Sep 08:37
Compare
Choose a tag to compare

Code cleanup

v1.5.0

02 Sep 16:00
Compare
Choose a tag to compare

• Add renderBackgroundNode which allows you to render custom background. Thanks @sallar for the PR!
• Update dependencies

v1.4.1

12 Aug 06:55
Compare
Choose a tag to compare

Code cleanup

v1.4.0

11 Aug 10:58
35a07a5
Compare
Choose a tag to compare

• Add props to fine-tune content offsets if needed
• Update dependencies

v1.3.0

09 Jul 21:35
Compare
Choose a tag to compare

• Update example to RN 0.63
• Support older versions by replacing useWindowDimensions hook with a Dimensions.get('window')

v1.2.0

16 Jun 18:51
1ef44e6
Compare
Choose a tag to compare

Rewrite using Animated API. Thanks @SudoPlz for the suggestion!

v1.1.1

08 Jun 17:13
Compare
Choose a tag to compare

Update dependencies

v1.1.0

06 Jun 09:08
Compare
Choose a tag to compare

Updated example