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

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.
@@ -23,7 +23,7 @@
23
23
  try {
24
24
  markdownWorklet = expensify::livemarkdown::getMarkdownWorklet([parserId intValue]);
25
25
  } catch (const std::out_of_range &error) {
26
- _prevText = text;
26
+ _prevText = [NSString stringWithString:text];
27
27
  _prevParserId = parserId;
28
28
  _prevMarkdownRanges = @[];
29
29
  return _prevMarkdownRanges;
@@ -36,7 +36,7 @@
36
36
  output = markdownRuntime->runGuarded(markdownWorklet, input);
37
37
  } catch (const jsi::JSError &error) {
38
38
  // Skip formatting, runGuarded will show the error in LogBox
39
- _prevText = text;
39
+ _prevText = [NSString stringWithString:text];
40
40
  _prevParserId = parserId;
41
41
  _prevMarkdownRanges = @[];
42
42
  return _prevMarkdownRanges;
@@ -62,13 +62,13 @@
62
62
  }
63
63
  } catch (const jsi::JSError &error) {
64
64
  RCTLogWarn(@"[react-native-live-markdown] Incorrect schema of worklet parser output: %s", error.getMessage().c_str());
65
- _prevText = text;
65
+ _prevText = [NSString stringWithString:text];
66
66
  _prevParserId = parserId;
67
67
  _prevMarkdownRanges = @[];
68
68
  return _prevMarkdownRanges;
69
69
  }
70
70
 
71
- _prevText = text;
71
+ _prevText = [NSString stringWithString:text];
72
72
  _prevParserId = parserId;
73
73
  _prevMarkdownRanges = markdownRanges;
74
74
  return _prevMarkdownRanges;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@expensify/react-native-live-markdown",
3
- "version": "0.1.256",
3
+ "version": "0.1.257",
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",