-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
Input loses focus when updating state. #53
Comments
having the same issue |
Yes it's a bug. Will be fixed my monday/tuesday. |
Fixed in v0.4.8 |
Thanks! |
I am still facing this issue. i am using |
Yes I am also facing the same issue in "native-base": "2.3.3" |
@twelvearrays, @k2glyph Guys did you get any solution for the same? |
@SupriyaKalghatgi Yes, its happening in 2.3.6 also. Keyboard gets disappeared |
@SupriyaKalghatgi |
I am using React Naive 0.27.2 with nativebase 0.4.7, I am having trouble using the input component.
As you can see, I am trying to update the state on the input on onChangeText, but when I update the state the focus is lost from the input component. Is there another way to use the input component to get the value from it onSubmit?
edit:
Also TextInput is working correctly, if I substitute it for the input component.
`import {Container, Header, Content, Button, Title, List, ListItem, InputGroup, Input, Icon} from 'native-base';
import React, {Component} from 'react';
import {TextInput, View} from 'react-native';
export default class Login extends Component {
constructor() {
super();
this.state = {user: '', pw: undefined};
}
}
`
The text was updated successfully, but these errors were encountered: