You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
contentSize is no longer in event.nativeEvent if you're using React Native TextInput's onChange method. Instead, you should deal with contentSize changes in the new onContentSizeChange method as described in React Native's documentation.
What is expected?
The text area component should adjust its height.
What is actually happening?
The app is crashing because contentSize is no longer defined in event.nativeEvent.
The text was updated successfully, but these errors were encountered:
Version
2.0.0
Environment
React Native 0.49
Reproduction link
https://codepen.io/anon/pen/zEbeoj
Steps to reproduce
There's not much to it. Just by using
TextareaItem
'sautoHeight
prop will make the app crash because of this line of code:https://github.com/ant-design/ant-design-mobile/blob/master/components/textarea-item/index.native.tsx#L58
contentSize
is no longer inevent.nativeEvent
if you're using React NativeTextInput
'sonChange
method. Instead, you should deal withcontentSize
changes in the newonContentSizeChange
method as described in React Native's documentation.What is expected?
The text area component should adjust its height.
What is actually happening?
The app is crashing because
contentSize
is no longer defined inevent.nativeEvent
.The text was updated successfully, but these errors were encountered: