mirror of
https://github.com/zoriya/react-native-web.git
synced 2026-05-31 09:44:21 +00:00
[fix] setNativeProps on TextInput
This commit is contained in:
@@ -8,6 +8,7 @@ import StyleSheet from '../../apis/StyleSheet'
|
|||||||
import Text from '../Text'
|
import Text from '../Text'
|
||||||
import TextareaAutosize from 'react-textarea-autosize'
|
import TextareaAutosize from 'react-textarea-autosize'
|
||||||
import TextInputState from './TextInputState'
|
import TextInputState from './TextInputState'
|
||||||
|
import UIManager from '../../apis/UIManager'
|
||||||
import View from '../View'
|
import View from '../View'
|
||||||
import ViewStylePropTypes from '../View/ViewStylePropTypes'
|
import ViewStylePropTypes from '../View/ViewStylePropTypes'
|
||||||
|
|
||||||
@@ -68,7 +69,7 @@ class TextInput extends Component {
|
|||||||
}
|
}
|
||||||
|
|
||||||
setNativeProps(props) {
|
setNativeProps(props) {
|
||||||
this.refs.input.setNativeProps(props)
|
UIManager.updateView(this.refs.input, props, this)
|
||||||
}
|
}
|
||||||
|
|
||||||
render() {
|
render() {
|
||||||
|
|||||||
Reference in New Issue
Block a user