Browse Source

sign up autofocus fix

Viktoriia 8 months ago
parent
commit
e5b3c18846
1 changed files with 10 additions and 0 deletions
  1. 10 0
      src/components/Input/index.tsx

+ 10 - 0
src/components/Input/index.tsx

@@ -84,6 +84,16 @@ export const Input: FC<Props> = ({
           placeholder={placeholder}
           onChangeText={onChange}
           multiline={multiline}
+          contextMenuHidden={inputMode === 'none'}
+          caretHidden={inputMode === 'none'}
+          onPressIn={() => {
+            if (inputMode === 'none') {
+              setFocused(true);
+              if (isFocused) {
+                isFocused(true);
+              }
+            }
+          }}
           onFocus={() => {
             setFocused(true);
             if (isFocused) {