|
|
|
|
|
by lab
1260 days ago
|
|
I think this is the key reason why going hybrid native with a lightweight WebView was needed at Notion. If there was a ProseMirror-like standard library for rich text editor available for crossplatform, with: - Native editor for IOS
- Native editor for Android
- Native editor for Web
- Electron/Native desktop, etc... These editor can share code via a clean architecture inspired state plugin hyerachy that's swappable (i.e, a shared provider that swap out state and data routing per platform). Then with metro or esbuild you can selectively prune the code branch. The UI can be done in RN-web if lazy or straight up native code. It doesn't matter at this level. Then, anyone who wanted to clone Notion can consume this component in their RN app. However, this is against Notion interest atm afaik, since Notion must keeps its advantage (make it harder for people to clone Notion). I'd argue it will try to shutdown such an initiative until it found a better way to have an edge on these competitor (or maybe shift to a new market) |
|
I don’t know how we could possibly shut this initiative down, but I guess I should try!
For us to build such a project without backing it with a webview would probably take an order of magnitude more engineers working on the editor than we have today.