Skip to content

Commit

Permalink
Merge branch 'main' of github.com:Expensify/react-native-live-markdow…
Browse files Browse the repository at this point in the history
…n into fix/race-condition-props-state-updates
  • Loading branch information
hannojg committed Jul 5, 2024
2 parents 0fc17f6 + 1b30540 commit cb4f913
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions ios/RCTMarkdownUtils.mm
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,9 @@ - (NSAttributedString *)parseMarkdown:(nullable NSAttributedString *)input withA
}

static std::shared_ptr<jsi::Runtime> runtime;
static std::mutex runtimeMutex;
auto lock = std::lock_guard<std::mutex>(runtimeMutex);

if (runtime == nullptr) {
NSString *path = [[NSBundle mainBundle] pathForResource:@"react-native-live-markdown-parser" ofType:@"js"];
assert(path != nil && "[react-native-live-markdown] Markdown parser bundle not found");
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@expensify/react-native-live-markdown",
"version": "0.1.99",
"version": "0.1.100",
"description": "Drop-in replacement for React Native's TextInput component with Markdown formatting.",
"main": "lib/commonjs/index",
"module": "lib/module/index",
Expand Down

0 comments on commit cb4f913

Please sign in to comment.