Skip to content

Commit f9b9ac2

Browse files
committed
add comment.
Signed-off-by: krishna2323 <belivethatkg@gmail.com>
1 parent fcce1d7 commit f9b9ac2

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

src/components/TextInput/BaseTextInput/implementation/index.native.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -286,6 +286,7 @@ function BaseTextInput(
286286
// Height fix is needed only for Text single line inputs
287287
const shouldApplyHeight = !shouldUseFullInputHeight && !isMultiline && !isMarkdownEnabled;
288288

289+
/** Focuses the text input when the component mounts, with a delay to allow navigation/modal animations to complete. */
289290
useFocusEffect(
290291
useCallback(() => {
291292
if (!shouldDelayFocus || !inputProps.autoFocus) {

0 commit comments

Comments
 (0)