Giter Site home page Giter Site logo

react-native-lexical-editor's Introduction

React Native Lexical Prototype With Mentions

This repository is part of the research for Mentions App.

The goal here is building hyper-hybrid chat interfaces that work across both mobile and web platforms, with rich text formatting based on Lexical.

This is a prototype showing how to integrate a full Rich text editor on React Native, by leveraging the Webview, and Lexical as the text editor framework. What makes this approach great is the use of WebViewBridge which makes the communication and state sharing between host (native) and client (webview) typesafe with minimal effort.

A great addition to this repository is the possibility of resizing the webview's height according to it's content size, making it possible to use as a simple "TextInput" for chat interfaces.

This example also contains a Suggestion plugin that presents mentions suggestions as a native view, instead of a popover rendered inside the WebView.

How to run

First, prebuild the iOS and android projects by using:

npx expo prebuild

then, run the app:

npm i
npm run ios

If you want to change the editor code and see changes applied in real time:

cd lexical-editor
npm run dev

react-native-lexical-editor's People

Contributors

davevilela avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.