We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents ff1c79f + 1fb7ed4 commit fc03cedCopy full SHA for fc03ced
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