Last active
October 9, 2017 21:07
-
-
Save Palisand/a6256b29e08c170dbb9b2a96c13e6b24 to your computer and use it in GitHub Desktop.
Changes for scroll-to-cursor functionality.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Object containing information about a TextInput's selection. | |
*/ | |
@interface RCTTextSelection : NSObject | |
@property (nonatomic, assign, readonly) NSInteger start; | |
@property (nonatomic, assign, readonly) NSInteger end; | |
/* >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> */ | |
@property (nonatomic, assign, readonly) CGPoint cursorPosition; | |
- (instancetype)initWithStart:(NSInteger)start end:(NSInteger)end cursorPosition:(CGPoint)cursorPosition; | |
/* <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< */ | |
@end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment