Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .changeset/strange-donuts-applaud.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@builder.io/sdk-react-native": patch
---

Add support for React 19
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
Add support for React 19
Fix: Add support for React 19 by handling `findDOMNode` deprecation

Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,8 @@ export function transformBlockProperties({

properties.ref = (ref) => {
if (isEditing()) {
const el = findDOMNode(ref);
// findDOMNode has been removed in React 19
const el = findDOMNode ? findDOMNode(ref) : ref;
if (el && !(el instanceof Text)) {
el.setAttribute('builder-id', id);
el.classList.add(id);
Expand Down
Loading