Skip to content

TextInput in react-native-paper can't move cursor point once it is focused #4658

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
meTech1021 opened this issue Mar 18, 2025 · 0 comments

Comments

@meTech1021
Copy link

Current behaviour

Now I am Trying to build react native mobile app using react native version 0.72.4
<TextInput
label="Email"
value={email ?? ""}
onChangeText={(text) => {
dispatch(actions.setUserLoginEmail(text));
setShowError(false);
if (text === "") {
setShowError(false);
} else {
debouncedCheckEmailValidity(text);
}
}}
error={showError && !validateEmailForTextInput(email)}
outlineStyle={{
borderRadius: 10,
backgroundColor: "#F5F8F6",
}}
activeOutlineColor="#000000"
theme={{
colors: {
background: '#FFFFFF',
primary: '#000000',
text: '#000000',
},
}}
/>
When I try this code and try to focus nth letter place then it is not working.

Image

For example I can't set cursor position next to "i" which is 3rd place in that "twinklex" string.
If keyboard is hiden then can click anywhere but once keyboard is shown again then can't again too.
This happens only on android

Your Environment

software version
ios 18
android 34
react-native 0.72.4
react-native-paper 5.13.1
node v20.9.0
npm or yarn 10.1.0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants