Questions tagged [react-native-textinput]

240 questions
1
vote
2 answers

React Native TextInput: placeholder and detx padding

I have a TextInput with rounded corners :
giozh
  • 9,868
  • 30
  • 102
  • 183
1
vote
2 answers

TextInput placeholder is not taking fontWeight

I have a TextInput field with placeholder given. On load the placeholder text should be shown as fontWeight:"normal" and when the user enters a value in textbox - the letter gets in fontWeight:"bold" but when the textbox is again empty - the…
1
vote
1 answer

onChangeText is not triggered during pasting value in TextInput

onChangeText is not triggered during pasting value in TextInput in IOS. How is possible to fix it? Here is my TextInput:
Lucky_girl
  • 4,543
  • 6
  • 42
  • 82
1
vote
3 answers

how can I clear Native-base Input text?

I try this { this.SearchInput = ref; }} /> and function: clear = () => { …
Areza
  • 671
  • 14
  • 26
1
vote
1 answer

React native Text input scroll issue

I am new to react native, I want to make a text input which accepts 3 lines of data and after that, it should automatically get the scroll up. I got stuck and need help to resolve this issue. Suggestions are welcome
user9380955
1
vote
1 answer

react-native-keyboard-aware-scroll-view isn't scrolling on Android

react-native-keyboard-aware-scroll-view isn't scrolling on Android this is a issue because when I click the top textInput it go out of view and I can't scroll it into view. I have added android:windowSoftInputMode="adjustPan" to the android…
1
vote
1 answer

React Native - Access Wrapped Component Methods

I'm trying to drive focus to the second field in a form using custom input components. However, I can't seem to access the focus() or other methods of TextInput which I am extending in the custom class. I have seen some information on ref forwarding…
Tom W.
  • 13
  • 6
1
vote
1 answer

Keyboard alignment issue with multiline text input

I have also used KeyboardAvoidingView, this aligns the keyboard properly if its only single line but not with multiline.
1
vote
6 answers

ReactNative TextInput' onChangeText is not called

I want onTextChange to be triggered when I set text to it through state changes. I am building my on screen number keyboard to enter a pin code, and I want to catch text changes on TextInput when user presses these keys. this.setState({text}) My…
madim
  • 774
  • 10
  • 22
0
votes
1 answer

Is there any solution for keyboard changing when secureTextEntry prop of TextInput changes on react native?

I'm working with a login screen, and I have that eye icon so I can hide or reveal the password content. But when I update the state of the icon, the keyboard of the mobile phone changes. Is there any way to keep the keyboard in the same way in both…
0
votes
1 answer

Prevent React native input line breaks

just wondering if there's a way to prevent React Native Text Input from breaking text into multiple lines when text is long
Rick Enciso
  • 3,145
  • 3
  • 14
  • 14
0
votes
0 answers

React-Native: How do I focus on a TextInput which is inside a FlatList programmatically

What I am trying to do is focus on the previous TextInput when the next is deleted. At the moment I have it working for adding items in the list by setting the autofocus to true for just that item but it does not work for deleting. The setting of…
0
votes
1 answer

show/hide a component onFocus and onBlur in react native

I am developing a small app where i have a file contain medicines "name, thumbnail and image address" called medicines.js file. This file and related images are stored in local folders. I am placing a textinput(search) box at the top in homepage to…
0
votes
1 answer

TextInput.Icon don't show icon recommendations

setText(text)} right={} underlineStyle={{ backgroundColor: 'transparent', …
0
votes
0 answers

React-native: TextInput getting overlapped to it's parent view when app comes foreground

I am facing one problem regarding my textInput.My textInput is going out of the parent view when my app comes in foreground from background. This is happening very frequently. This happens when I have multiple lines inside textInput before sending…