ardaogulcan/react-native-keyboard-accessory

Add Support for React-Native-Windows by setting keyboard event height (Patch included)

Opened this issue ยท 0 comments

Hi! ๐Ÿ‘‹

Firstly, thanks for your work on this project! ๐Ÿ™‚

Today I used patch-package to patch react-native-keyboard-accessory@0.1.14 for the project I'm working on to patch KeyboardAccessoryView to support RN-Windows.

Here is the diff that solved my problem:

diff --git a/node_modules/react-native-keyboard-accessory/KeyboardAccessoryView.js b/node_modules/react-native-keyboard-accessory/KeyboardAccessoryView.js
index 920ed39..0b2aa3e 100644
--- a/node_modules/react-native-keyboard-accessory/KeyboardAccessoryView.js
+++ b/node_modules/react-native-keyboard-accessory/KeyboardAccessoryView.js
@@ -84,7 +84,8 @@ class KeyboardAccessoryView extends Component {
       ios: keyboardEvent.endCoordinates.height,
       android: this.props.androidAdjustResize
         ? 0
-        : keyboardEvent.endCoordinates.height
+        : keyboardEvent.endCoordinates.height,
+      windows: keyboardEvent.endCoordinates.height
     });
 
     const keyboardAnimate = () => {

This issue body was partially generated by patch-package.