mirror of
https://github.com/zhigang1992/react-native.git
synced 2026-03-26 07:04:05 +08:00
Fix flaky scrolling for TextInput when using rich text
Summary: public This diff fixes the jumpy scrolling for multiline `<TextInput>` when using nested `<Text>` components to implement rich text highlighting. The fix is to disable scrolling on the underlying UITextView, and nest it inside another UIScrollView that we control. Reviewed By: ericvicenti, tadeuzagallo Differential Revision: D2674670 fb-gh-sync-id: bacee3ae485523cc26ca8102b714e081df230629
This commit is contained in:
committed by
facebook-github-bot-7
parent
469a65217c
commit
b5be05d82b
@@ -22,7 +22,6 @@
|
||||
@property (nonatomic, assign) UIEdgeInsets contentInset;
|
||||
@property (nonatomic, assign) BOOL automaticallyAdjustContentInsets;
|
||||
@property (nonatomic, copy) NSString *text;
|
||||
@property (nonatomic, strong) UIColor *textColor;
|
||||
@property (nonatomic, strong) UIColor *placeholderTextColor;
|
||||
@property (nonatomic, strong) UIFont *font;
|
||||
@property (nonatomic, assign) NSInteger mostRecentEventCount;
|
||||
|
||||
Reference in New Issue
Block a user