-
Notifications
You must be signed in to change notification settings - Fork 24.8k
Closed
Labels
Component: TextInputRelated to the TextInput component.Related to the TextInput component.Resolution: LockedThis issue was locked by the bot.This issue was locked by the bot.
Description
- I have reviewed the documentation
- I have searched existing issues
- I am using the latest React Native version
Environment
Environment:
OS: macOS High Sierra 10.13.3
Node: 8.8.0
Yarn: 1.3.2
npm: 5.4.2
Watchman: 4.7.0
Xcode: Xcode 9.2 Build version 9C40b
Android Studio: Not Found
Packages: (wanted => installed)
react: ^16.0.0 => 16.3.2
react-native: ^0.55.0 => 0.55.3
Steps to Reproduce
- Create a new project with react-native init
- Replace App.js content with the following code:
import React, { Component } from 'react';
import {
TextInput,
View
} from 'react-native';
type Props = {};
export default class App extends Component<Props> {
state = {
text: ''
}
onChangeText = (event) => {
const { text } = event.nativeEvent
this.setState({ text })
}
render() {
return (<View>
<TextInput value={this.state.text} onChange={this.onChangeText} />
</View>);
}
}
- Run the app on Android device with react-native run-android
- Type and clear some text into the TextInput several times
Expected Behavior
Input should perform the same after several type/clear cycles.
Actual Behavior
Input becomes laggy after a couple of type/clear cycles.
marcosrdz, j-mendez, TomaszGrzelak, lynrose10, ilonashub and 10 more
Metadata
Metadata
Assignees
Labels
Component: TextInputRelated to the TextInput component.Related to the TextInput component.Resolution: LockedThis issue was locked by the bot.This issue was locked by the bot.