Skip to content

Commit

Permalink
Merge pull request #442 from codler/patch-1
Browse files Browse the repository at this point in the history
Fix #429 for broken react-native 0.63.0. Detect Forwarding Refs
  • Loading branch information
rborn committed Jul 14, 2020
2 parents ff1c79f + 1fb7ed4 commit fc03ced
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/KeyboardAwareHOC.js
Original file line number Diff line number Diff line change
Expand Up @@ -546,7 +546,7 @@ function KeyboardAwareHOC(
// listenToKeyboardEvents(ScrollView);
// listenToKeyboardEvents(options)(Comp);
const listenToKeyboardEvents = (configOrComp: any) => {
if (typeof configOrComp === 'object') {
if (typeof configOrComp === 'object' && !configOrComp.displayName) {
return (Comp: Function) => KeyboardAwareHOC(Comp, configOrComp)
} else {
return KeyboardAwareHOC(configOrComp)
Expand Down

0 comments on commit fc03ced

Please sign in to comment.