Skip to content

Commit

Permalink
revert ref variable change
Browse files Browse the repository at this point in the history
  • Loading branch information
FitseTLT committed Mar 7, 2024
1 parent f69df2a commit 69e6022
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/libs/focusComposerWithDelay.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,14 @@ type FocusComposerWithDelay = (shouldDelay?: boolean) => void;
/**
* Create a function that focuses the composer.
*/
function focusComposerWithDelay(textInputRef: TextInput | null): FocusComposerWithDelay {
function focusComposerWithDelay(textInput: TextInput | null): FocusComposerWithDelay {
/**
* Focus the text input
* @param [shouldDelay] Impose delay before focusing the text input
*/
return (shouldDelay = false) => {
// There could be other animations running while we trigger manual focus.
// This prevents focus from making those animations janky.
const textInput = textInputRef;

if (!textInput || EmojiPickerAction.isEmojiPickerVisible()) {
return;
Expand Down

0 comments on commit 69e6022

Please sign in to comment.