Skip to content

Commit

Permalink
fix: avoid an useless function call
Browse files Browse the repository at this point in the history
  • Loading branch information
zoontek committed Nov 17, 2024
1 parent b146232 commit 10adbcb
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions packages/react-native-avoid-softinput/src/AvoidSoftInput.ts
Original file line number Diff line number Diff line change
Expand Up @@ -53,13 +53,12 @@ function setShouldMimicIOSBehavior(shouldMimic: boolean) {
if (Platform.OS !== 'android') {
return;
}

if (__DEV__) {
// Will print "setShouldMimicIOSBehavior value is ignored when using react-native-edge-to-edge"
controlEdgeToEdgeValues({ setShouldMimicIOSBehavior: shouldMimic });
controlEdgeToEdgeValues({ shouldMimic });
}
if (!EDGE_TO_EDGE) {
module.setShouldMimicIOSBehavior(shouldMimic);
}

module.setShouldMimicIOSBehavior(EDGE_TO_EDGE || shouldMimic);
}

/**
Expand Down

0 comments on commit 10adbcb

Please sign in to comment.