mirror of
https://github.com/zhigang1992/react-native.git
synced 2026-03-26 07:04:05 +08:00
multiline textinput view not wrapping in multiline on ios
Summary: It's because the view doesn't update itself after setText. Closes https://github.com/facebook/react-native/pull/5247 Reviewed By: svcscm Differential Revision: D2819520 Pulled By: nicklockwood fb-gh-sync-id: 06f5342d94f242fc63f862dac738da9b96842183
This commit is contained in:
committed by
facebook-github-bot-7
parent
ad16ca2253
commit
09250aa184
@@ -382,6 +382,8 @@ RCT_NOT_IMPLEMENTED(- (instancetype)initWithCoder:(NSCoder *)aDecoder)
|
||||
}
|
||||
|
||||
[self _setPlaceholderVisibility];
|
||||
[self updateContentSize]; //keep the text wrapping when the length of
|
||||
//the textline has been extended longer than the length of textinputView
|
||||
} else if (eventLag > RCTTextUpdateLagWarningThreshold) {
|
||||
RCTLogWarn(@"Native TextInput(%@) is %zd events ahead of JS - try to make your JS faster.", self.text, eventLag);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user