Questions tagged [react-native-textinput]

240 questions
0
votes
0 answers

How do I get the vertical offset of a React Native TextInput in the onFocus event?

I want to get the vertical offset of a React Native TextInput in the onFocus event for that element. I have the following code in a TextInputCustom component I created: let textInput; { textInput.measure((x,…
HartleySan
  • 7,404
  • 14
  • 66
  • 119
0
votes
1 answer

React native keyboardAvoidView covers half textInput

This error is observed on Samsung note 10, Not on all devices, But mostly on Samsung The keyboard covers up half of the Textinput, I've tried a couple fixes, But none is working.
0
votes
1 answer

React Native TextInput: Is it possible to make TextInput move up out of the way of keyboard on iOS same as for Android?

I have a TextInput field in my React Native app that's near the bottom of the screen. When I click to type in it, on Android the TextInput moves up out of the way so that you can still see it while you're typing, but on iOS the TextInput doesn't…
gkeenley
  • 6,088
  • 8
  • 54
  • 129
0
votes
0 answers

How to get text from a textbox in react native without using onchangeText?

I have already set a default value in a text box this.setState({name})}/> It's a part of a form that I created the form is already filled with default values the…
0
votes
1 answer

Keep showing keyboard when press keyboards submit button

I want to keep showing keyboard. For example, when I press submit, the process takes place and the keyboard remains open.
Alperen ARICI
  • 204
  • 6
  • 13
0
votes
2 answers

how do you get a input from a TextInput (in expo) and store it as a variable to be recalled in another function without using class?

I am working on a very simple reminders app as an introduction to using react and javascript. (i am a complete beginner at javascript, but have experience with languages like ruby.) I want to be able to get a user keyboard input from this TextInput…
0
votes
1 answer

Remove border of react-native-material-textfield

I'm using react-native-material-textfield instead of react-native TextInput. some problems: 1) How can I remove border right/left/top? 2) How can I change the color/font-size of the label( here is phone number)? I tried…
user11912021
0
votes
2 answers

TextInput value is not updated after changing state?

this.onChangeText(text)} style={textInputStyle} value={this.state.testEmail} /> Check the function which I'm using to…
Manoj Perumarath
  • 9,337
  • 8
  • 56
  • 77
0
votes
1 answer

The TextInput onChange is one step behind

Kindly refer to the codesandbox link for code. Basically the input is lagging by one key press although I explicitly added the compute function in the callback of setState. Edit: I understand the solution but I want to know why this is happening…
Aditya Jamuar
  • 117
  • 1
  • 10
0
votes
1 answer

How do i make so the TextInput clears after submit in react native

I have a TextInput in my code that doesn't clear itself after submit and i have no idea on why it does that or how to solve it. I've looked at other posts that has this kinda issue? but none works or i don't really know where to place the code to…
iLightFPS
  • 63
  • 1
  • 8
0
votes
0 answers

TextBox doesnt input Text

I am new to ReactNative and I am trying to able to write on my TextBoxes. Although, I can't input anything. This is the segment for my text input on my Signup.js renderTextInput = (field) => { const {meta: {touched, error}, label, secureTextEntry,…
0
votes
1 answer

Disable or alter size change of TextInput in react-native-web

I'm looking for away to disable or alter the automatic zoom behavior I get when I select a TextInput in a react-native-web project. This is not an issue I'm having in react-native projects, only in projects using react-native-web. It throws off my…
0
votes
3 answers

React Native Text Input fixed text

I want to add something like a Hint, on the textInput, as in java using android studio, in react native is it possible to do this? I know you have the option to add a Value, defaultValue and the placeholder, but they don't work like hint. Tanks!
Samuel Viol
  • 11
  • 1
  • 5
0
votes
2 answers

How to clear TextInput on send button in React native with redux

I am working on chat app using react native with redux, where messages are sending through the send button. But whenever I sent a message on hitting the send button, the TextInput is not clearing. I want to clear the TextInput field on hitting the…
Iffat
  • 1,606
  • 4
  • 19
  • 33
0
votes
2 answers

How to change text input value into zero after onChangeText?

I am new in react native, and I have question about text input and state. Let say I make an app to buy nature materials, for instance, sands. I have a buy page and a trade component. buy page has a button for buy and go to the next step. And the…
1 2 3
15
16