react-native-typerich 2.2.0 → 2.2.2

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.
@@ -130,7 +130,7 @@ Class<RCTComponentViewProtocol> TypeRichTextInputViewCls(void) {
130
130
  _disableImagePasting = NO;
131
131
 
132
132
  // Add textView as subview (not contentView)
133
- [self addSubview:_textView];
133
+ self.contentView = _textView;
134
134
 
135
135
  [self updatePlaceholderVisibility];
136
136
  }
@@ -753,19 +753,6 @@ shouldRecognizeSimultaneouslyWithGestureRecognizer:(UIGestureRecognizer *)otherG
753
753
  _placeholderLabel.hidden = _textView.text.length > 0;
754
754
  }
755
755
 
756
- - (void)layoutSubviews {
757
- [super layoutSubviews];
758
-
759
- // Ensure text view fills the parent bounds
760
- _textView.frame = self.bounds;
761
-
762
- // Debug: Log frame and content size
763
- NSLog(@"TextView frame: %@, contentSize: %@, maxLines: %ld",
764
- NSStringFromCGRect(_textView.frame),
765
- NSStringFromCGSize(_textView.contentSize),
766
- (long)_textView.textContainer.maximumNumberOfLines);
767
- }
768
-
769
756
  #pragma mark - Event emitter
770
757
 
771
758
  - (std::shared_ptr<TypeRichTextInputViewEventEmitter>)getEventEmitter {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "react-native-typerich",
3
- "version": "2.2.0",
4
- "description": "Textinput replacement",
3
+ "version": "2.2.2",
4
+ "description": "Drop in TextInput replacement with inbuilt support for Image Pasting and Gboard stickers",
5
5
  "main": "./lib/module/index.js",
6
6
  "types": "./lib/typescript/src/index.d.ts",
7
7
  "exports": {