Skip to content

A fully open source & end-to-end encrypted note taking alternative to Evernote.

mobile: patch rn to fix keyboard hiding on android

Ammar Ahmed4689b4290eb5
diff --git a/apps/mobile/patches/react-native+0.82.1.patch b/apps/mobile/patches/react-native+0.82.1.patch
new file mode 100644
index 000000000..7d3abd62e
--- /dev/null
+++ b/apps/mobile/patches/react-native+0.82.1.patch
@@ -0,0 +1,13 @@
+diff --git a/node_modules/react-native/Libraries/Components/Keyboard/KeyboardAvoidingView.js b/node_modules/react-native/Libraries/Components/Keyboard/KeyboardAvoidingView.js
+index 6eca156..5a42107 100644
+--- a/node_modules/react-native/Libraries/Components/Keyboard/KeyboardAvoidingView.js
++++ b/node_modules/react-native/Libraries/Components/Keyboard/KeyboardAvoidingView.js
+@@ -208,7 +208,7 @@ class KeyboardAvoidingView extends React.Component<
+ ];
+ } else {
+ this._subscriptions = [
+- Keyboard.addListener('keyboardDidHide', this._onKeyboardChange),
++ Keyboard.addListener('keyboardDidHide', this._onKeyboardHide),
+ Keyboard.addListener('keyboardDidShow', this._onKeyboardChange),
+ ];
+ }