Questions tagged [react-native-textinput]

240 questions
0
votes
1 answer

React Native - Text Input - Long text input, cursor doesn't go at the beginning after clicking the return key type

I have this simple Text Input but the problem is that on Android Devices, when the user has written a long text, the cursor doesn't go automatically in the beginning of the field but it stays in the end. How can I fix this?
coder03
  • 61
  • 8
0
votes
2 answers

React Native TextInput value not updating

I have a TextInput field that when a user is editing, they have the option to cancel. The goal is to revert the TextInput value back to the original value before the user started editing, however, even though the previous value is stored and the…
0
votes
2 answers

how hidden TextInput IOS Keyboard top area (ok button)

Screenshot i want to hidden this area What shall I do? thanks
0
votes
1 answer

Same TextInput based component behaves differently regarding height

I have a component that wraps a TextInput and has an option to display the content on multiline. However, it's used in multiple places around the app, and in some spots the multiline makes the height of the TextInput grow, but in others it remains…
gusti
  • 393
  • 4
  • 21
0
votes
1 answer

React Native - add specific clearButton on input field when the keyboard is open

I am trying to create a specific clear button to use on both ios and android devices. I have created a reusable component for the several fields I have. When I press the fields since the keyboard opens the X button shows in all fields not only the…
0
votes
2 answers

useRef() does not work in Android app (react native)

I have several TextInput that I am using on a math app. The user can put a number and at the end click on a button and that textInput shows the right answer. I use useRef to work with this values as I don't want re-renders with UseState. I use expo…
0
votes
0 answers

TextInput: input.current.value is undefined while using forwardRef in React Native

In React Native, I am using Custom Component of TextInput with forwardRef, input.current.focus() and input.current.clear() is working fine, but input.current.value is always undefined. I have google around a lot, and tried many things, but issue…
0
votes
1 answer

React Native: How to enforce max length on input, including after decimal?

In my React Native app I'm using the component from Native Base which is based on the standard component. I want to enforce a max length of 5 digits regardless of whether there's a decimal point. So if the user just types 1's,…
0
votes
1 answer

Not able to type in Text Input in Android

Not able to type in Text Input in Android. While making an app in React Native I realized that there is a text input in which I am not able to type. This problem is happening with Android only for IOS it is working fine. And I have to mention that I…
Shubham Deswal
  • 57
  • 1
  • 15
0
votes
1 answer

How to implement TextInputLayout with React Native?

Not long after I started RN, the UI designer asked me to implement this effect, and I was upset
0
votes
2 answers

Manipulation TextInput selection

I'm trying to make a TextInput with a non-standard placeholder, because I need formatting and the normal, built-in TextInput placeholder doesn't work for me. In order for the user to start writing from the beginning of the line, as with the normal…
Slam
  • 73
  • 2
  • 11
0
votes
2 answers

How can I check the TextInput change completed in react native

Basically, I need to hit search API when the text changed but it's not a good thing to call API on every change in TextInput. So, is there any callback function that exists in this Component that triggers when the user is done with editing (stopped…
AliRehman7141
  • 873
  • 3
  • 12
  • 33
0
votes
2 answers

Bottom content covers the main content when keyboard is visible

I have a problem with device keyboard main content and bottom/footer content when the keyboard is visible. In this example I have 3 InpunTexts as the main content of the screen and a long text in the bottom (in the original source it is the company…
0
votes
1 answer

Using secureTextInput with multiple TextInput fields causes UI problems on iOS

I have two secureTextEntry fields, one for password and one for retype-password. Testing this on iOS emulator I get the jumping behaviour demonstrated in this video. If I turn off secureTextEntry in just the second password field, the jumping…
Andrew Einhorn
  • 741
  • 8
  • 23
0
votes
0 answers

How to add custom props to in-built textInput in react-native

So as the heading says, i want to add custom props to the in-built textInput component in react-native (expo). So what i tried is i got to the location…
Irfan wani
  • 4,084
  • 2
  • 19
  • 34