@expensify/react-native-live-markdown 0.1.257 → 0.1.259

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.
@@ -1,6 +1,6 @@
1
1
  #import <RNLiveMarkdown/RCTTextInputComponentView+Markdown.h>
2
2
  #import <RNLiveMarkdown/RCTMarkdownUtils.h>
3
- #import <React/RCTUITextField.h>
3
+ #import <React/RCTUITextView.h>
4
4
  #import <objc/message.h>
5
5
 
6
6
  @implementation RCTTextInputComponentView (Markdown)
@@ -13,15 +13,14 @@
13
13
  return objc_getAssociatedObject(self, @selector(getMarkdownUtils));
14
14
  }
15
15
 
16
- - (RCTUITextField *)getBackedTextInputView {
17
- RCTUITextField *backedTextInputView = [self valueForKey:@"_backedTextInputView"];
18
- return backedTextInputView;
16
+ - (RCTUITextView *)getBackedTextInputView {
17
+ return [self valueForKey:@"_backedTextInputView"];
19
18
  }
20
19
 
21
20
  - (void)markdown__setAttributedString:(NSAttributedString *)attributedString
22
21
  {
23
22
  RCTMarkdownUtils *markdownUtils = [self getMarkdownUtils];
24
- RCTUITextField *backedTextInputView = [self getBackedTextInputView];
23
+ RCTUITextView *backedTextInputView = [self getBackedTextInputView];
25
24
  if (markdownUtils != nil && backedTextInputView != nil) {
26
25
  attributedString = [markdownUtils parseMarkdown:attributedString withDefaultTextAttributes:backedTextInputView.defaultTextAttributes];
27
26
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@expensify/react-native-live-markdown",
3
- "version": "0.1.257",
3
+ "version": "0.1.259",
4
4
  "description": "Drop-in replacement for React Native's TextInput component with Markdown formatting.",
5
5
  "main": "lib/commonjs/index",
6
6
  "module": "lib/module/index",