79443865

Date: 2025-02-16 20:26:42
Score: 0.5
Natty:
Report link

just use autoFocus prop of TextInput. It worked even in a modal :

<TextInput
    placeholder={placeholder || "Enter text"}
    value={text}
    onChangeText={setText}
    editable={!readOnly}
    autoFocus={true}
/>
Reasons:
  • Whitelisted phrase (-1): It worked
  • Low length (0.5):
  • Has code block (-0.5):
  • Unregistered user (0.5):
  • Low reputation (1):
Posted by: user29670484