Skip to content

Commit fc03ced

Browse files
authored
Merge pull request #442 from codler/patch-1
Fix #429 for broken react-native 0.63.0. Detect Forwarding Refs
2 parents ff1c79f + 1fb7ed4 commit fc03ced

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/KeyboardAwareHOC.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -546,7 +546,7 @@ function KeyboardAwareHOC(
546546
// listenToKeyboardEvents(ScrollView);
547547
// listenToKeyboardEvents(options)(Comp);
548548
const listenToKeyboardEvents = (configOrComp: any) => {
549-
if (typeof configOrComp === 'object') {
549+
if (typeof configOrComp === 'object' && !configOrComp.displayName) {
550550
return (Comp: Function) => KeyboardAwareHOC(Comp, configOrComp)
551551
} else {
552552
return KeyboardAwareHOC(configOrComp)

0 commit comments

Comments
 (0)