Whenever I attempt to input a value into my TextInput, the keyboard on mobile closes and the value does not show up in the TextField. This issue arises when I utilize the useState hook to store the input in a variable.
Is there a way to resolve this behavior? My project is developed using ReactNative in TypeScript
const [login, setLogin] = useState("");
<TextInput style={styles.text} onChangeText={setLogin} />
These are the key lines of code related to this issue
The desired outcome is to seamlessly enter the complete input without any interference and have it displayed accurately
UPDATE: Using the defaultValue prop resolved the display issue with the input. However, the problem of the keyboard closing still persists!