From d1a288e9cff45744602a205d96edac40e58bfa91 Mon Sep 17 00:00:00 2001 From: rohitshampur-dev <31270931+rohitshampur-dev@users.noreply.github.com> Date: Wed, 24 Jun 2020 19:35:24 +0530 Subject: [PATCH] Fix children not rendering issue ->Fix children not rendering anything after upgrading to RN 0.63.0 ->Fix from https://github.com/APSL/react-native-keyboard-aware-scroll-view/issues/429#issuecomment-631299411 --- lib/KeyboardAwareHOC.js | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/lib/KeyboardAwareHOC.js b/lib/KeyboardAwareHOC.js index 4bf0ed0..0c2a934 100644 --- a/lib/KeyboardAwareHOC.js +++ b/lib/KeyboardAwareHOC.js @@ -545,12 +545,15 @@ function KeyboardAwareHOC( // Allow to pass options, without breaking change, and curried for composition // listenToKeyboardEvents(ScrollView); // listenToKeyboardEvents(options)(Comp); +//FIX referencing this issue +//https://github.com/APSL/react-native-keyboard-aware-scroll-view/issues/429#issuecomment-631299411 const listenToKeyboardEvents = (configOrComp: any) => { - if (typeof configOrComp === 'object') { - return (Comp: Function) => KeyboardAwareHOC(Comp, configOrComp) - } else { - return KeyboardAwareHOC(configOrComp) - } +// if (typeof configOrComp === 'object') { +// return (Comp: Function) => KeyboardAwareHOC(Comp, configOrComp) +// } else { +// return KeyboardAwareHOC(configOrComp) +// } + return KeyboardAwareHOC(configOrComp) } export default listenToKeyboardEvents