diff --git a/src/components/Composer/implementation/index.native.tsx b/src/components/Composer/implementation/index.native.tsx index 3a84e01d70c5..96527b105853 100644 --- a/src/components/Composer/implementation/index.native.tsx +++ b/src/components/Composer/implementation/index.native.tsx @@ -62,8 +62,9 @@ function Composer( return; } - // We are setting selection twice to trigger a scroll to the cursor on toggling to smaller composer size. + // We need the delay for setSelection to properly work for IOS. const timeoutID = setTimeout(() => { + // We are setting selection twice to trigger a scroll to the cursor on toggling to smaller composer size. textInput.current?.setSelection((selection.start || 1) - 1, selection.start); textInput.current?.setSelection(selection.start, selection.start); }, 0);