We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ff1c79f commit 1fb7ed4Copy full SHA for 1fb7ed4
lib/KeyboardAwareHOC.js
@@ -546,7 +546,7 @@ function KeyboardAwareHOC(
546
// listenToKeyboardEvents(ScrollView);
547
// listenToKeyboardEvents(options)(Comp);
548
const listenToKeyboardEvents = (configOrComp: any) => {
549
- if (typeof configOrComp === 'object') {
+ if (typeof configOrComp === 'object' && !configOrComp.displayName) {
550
return (Comp: Function) => KeyboardAwareHOC(Comp, configOrComp)
551
} else {
552
return KeyboardAwareHOC(configOrComp)
0 commit comments