React Native Support #2410
-
I know this is a big ask because it would require Native Bindings in Kotlin and Swift, but are there any plans to get React Native support for Lexical? It would be a game changer for many and to me would be a huge advantage in moving away from ProseMirror to Lexical. The use cases to me are obvious, being able to use one project across web and mobile operating systems |
Beta Was this translation helpful? Give feedback.
Replies: 11 comments 23 replies
-
Which would be the most important considerations for you in a hypothetical React Native version of Lexical?
|
Beta Was this translation helpful? Give feedback.
-
Hey @amyworrall. Thanks for the quick reply. I think it's a combination of 1,2, and 4. I'm not sure how we could use Lexical outside of a web view on RN, which is problematic. Ideally there would be a Lexcial framework that is as low level as Lexical, but allows for native bindings to iOS and Android. I'd have to dig into this more but it seems likely that the core engine, such as |
Beta Was this translation helpful? Give feedback.
-
Yes please 🥺 React Native support would be tremendous 🥳 Ideally all 4 points 😅😇 |
Beta Was this translation helpful? Give feedback.
-
As Dominic has hinted elsewhere, I’m leading a project to build native Lexical on iOS. I’m in the very early days of looking in to what a React Native wrapper around Lexical iOS would look like. The main sticking point is ensuring synchronous callbacks from JS to native, which requires bleeding edge RN features, but aside from that the issue will be the completely different layout engine for TextKit on iOS compared with DOM/CSS. So even if we enable building node subclasses in JS under RN, those node subclasses will have to use iOS semantics (providing string attributes rather than Dom nodes). That’s why I’m trying to find out what the most useful level of RN support would be, to ensure we focus on making that a good experience first. (I know I’ve not mentioned Android either. We have nothing to talk about there yet, alas.) |
Beta Was this translation helpful? Give feedback.
-
Closing and moving to a discussion as question above has been answered. |
Beta Was this translation helpful? Give feedback.
-
So, there is no intent to port lexical to ReactNative in a Webview? |
Beta Was this translation helpful? Give feedback.
-
Bumping this - would love an update on the progress if available! |
Beta Was this translation helpful? Give feedback.
-
@amyworrall I'd love to know if the iOS version is still happening. I actually do NOT require react native support. I'd be happy with an iOS version that could read the editorState from the web and render identical looking nodes. Any update on the project would be super helpful. Thank you all for a great project! |
Beta Was this translation helpful? Give feedback.
-
Hey @zurfyx, @acywatson, what is the current status of React Native support? Maybe you can answer these questions #2410 (comment) |
Beta Was this translation helpful? Give feedback.
-
Has anyone tried lexical in a webview with React Native? |
Beta Was this translation helpful? Give feedback.
-
Hello, very nice work on the Lexical framework real life saver. Knowing this will help a great deal if i can choose to use the lexical framework in my project or not. Many Thanks. |
Beta Was this translation helpful? Give feedback.
As Dominic has hinted elsewhere, I’m leading a project to build native Lexical on iOS. I’m in the very early days of looking in to what a React Native wrapper around Lexical iOS would look like. The main sticking point is ensuring synchronous callbacks from JS to native, which requires bleeding edge RN features, but aside from that the issue will be the completely different layout engine for TextKit on iOS compared with DOM/CSS. So even if we enable building node subclasses in JS under RN, those node subclasses will have to use iOS semantics (providing string attributes rather than Dom nodes). That’s why I’m trying to find out what the most useful level of RN support would be, to ensure w…