From 08a967796d50023c354075a91d040f2a7a60df4c Mon Sep 17 00:00:00 2001 From: Bernhard Owen Josephus Date: Mon, 18 Dec 2023 15:38:04 +0800 Subject: [PATCH] use auto focus input hook --- src/pages/settings/Profile/CustomStatus/StatusPage.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/pages/settings/Profile/CustomStatus/StatusPage.js b/src/pages/settings/Profile/CustomStatus/StatusPage.js index bf21d3cd2b54..3c4d7b3887c0 100644 --- a/src/pages/settings/Profile/CustomStatus/StatusPage.js +++ b/src/pages/settings/Profile/CustomStatus/StatusPage.js @@ -14,6 +14,7 @@ import ScreenWrapper from '@components/ScreenWrapper'; import Text from '@components/Text'; import TextInput from '@components/TextInput'; import withCurrentUserPersonalDetails, {withCurrentUserPersonalDetailsPropTypes} from '@components/withCurrentUserPersonalDetails'; +import useAutoFocusInput from '@hooks/useAutoFocusInput'; import useLocalize from '@hooks/useLocalize'; import useStyleUtils from '@hooks/useStyleUtils'; import useTheme from '@hooks/useTheme'; @@ -123,6 +124,8 @@ function StatusPage({draftStatus, currentUserPersonalDetails}) { return {}; }, [brickRoadIndicator]); + const {inputCallbackRef} = useAutoFocusInput(); + return (