react-native-highlight-text-view 0.1.26 → 0.1.27

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -439,6 +439,9 @@ using namespace facebook::react;
439
439
  if (newViewProps.autoFocus && _textView.isEditable) {
440
440
  dispatch_async(dispatch_get_main_queue(), ^{
441
441
  [self->_textView becomeFirstResponder];
442
+ // Move cursor to the end of the text
443
+ NSUInteger textLength = self->_textView.text.length;
444
+ self->_textView.selectedRange = NSMakeRange(textLength, 0);
442
445
  });
443
446
  }
444
447
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-native-highlight-text-view",
3
- "version": "0.1.26",
3
+ "version": "0.1.27",
4
4
  "description": "A native text input for React Native that supports inline text highlighting",
5
5
  "main": "./lib/module/index.js",
6
6
  "types": "./lib/typescript/src/index.d.ts",