{"id":22144201,"url":"https://github.com/amjadbouhouch/rn-text-editor","last_synced_at":"2025-07-26T01:31:03.415Z","repository":{"id":218127804,"uuid":"745656251","full_name":"amjadbouhouch/rn-text-editor","owner":"amjadbouhouch","description":"A React Native Solution to create a text rich input","archived":false,"fork":false,"pushed_at":"2024-05-01T20:18:27.000Z","size":2067,"stargazers_count":16,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-11-19T06:02:59.256Z","etag":null,"topics":["prosemirror","react-native","react-native-components","text-editor","tiptap-editor"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/amjadbouhouch.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-01-19T20:05:13.000Z","updated_at":"2024-11-15T18:30:04.000Z","dependencies_parsed_at":"2024-04-28T11:28:32.428Z","dependency_job_id":"45b12e6b-8f76-4e11-b4ff-557477492e71","html_url":"https://github.com/amjadbouhouch/rn-text-editor","commit_stats":null,"previous_names":["amjadbouhouch/rn-text-editor"],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/amjadbouhouch%2Frn-text-editor","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/amjadbouhouch%2Frn-text-editor/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/amjadbouhouch%2Frn-text-editor/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/amjadbouhouch%2Frn-text-editor/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/amjadbouhouch","download_url":"https://codeload.github.com/amjadbouhouch/rn-text-editor/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":227635812,"owners_count":17797030,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["prosemirror","react-native","react-native-components","text-editor","tiptap-editor"],"created_at":"2024-12-01T22:19:38.498Z","updated_at":"2024-12-01T22:19:39.090Z","avatar_url":"https://github.com/amjadbouhouch.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# rn-text-editor (⚠️ BETA Version)\n\nrn-text-editor - Built on top of [ProseMirror](https://prosemirror.net/)\n\n`rn-text-editor` is an evolving and feature-rich text editor package for React Native that's currently under active development. This package offers a range of functionalities for creating and managing text content in your React Native applications. `While it's not stable yet`, we invite you to explore its capabilities, contribute to its improvement, and share your feedback with the community.\n\n## TODO\n\n- [x] Setup a basic schema\n- [x] Handle cursor position (Selection)\n- [x] handle onKeyPressed (insert new text or remove it based on the selection)\n- [x] Menu actions\n- [x] Plugins + Extensions Support\n- [ ] Documentations\n- [x] Dynamic schema\n\n\n## Features\n\n1. Customizable: Tailor the text editor to suit your application's requirements with various configuration options.\n2. Rich Text Support: Easily incorporate rich text elements, such as bold and italic formatting, into your content.\n\n## Demo\n\n![Demo](images/android-simple.jpg \"Android Preview\")\n\n## Installation\n\nTo get started with rn-text-editor, install the package using npm or yarn:\n```sh\nnpm install rn-text-editor\n# or\nyarn add rn-text-editor\n\n```\n\n## Usage\n\n\n\u003e See example folder.\n\nExplore the package in its current state and feel free to contribute to its development. Integration is straightforward and can be done as follows:\n\n```js\nimport { StyleSheet, TextInput, View } from 'react-native';\nimport { EditorContent, extensions, useEditor } from 'rn-text-editor';\n\nconst EditorScreen = ({}: EditorScreenProps) =\u003e {\n  const inputRef = React.useRef\u003cTextInput\u003e(null);\n  const editor = useEditor({\n    initialContent: [],\n    extensions: [extensions.EditorCommands, extensions.Bold, extensions.Italic],\n    onUpdate(props) {\n      // Get the updated value!\n      console.log(props.editor.contentAsJson());\n    },\n  });\n  return (\n        \u003cEditorContent\n          editor={editor}\n          placeholder=\"Write something...\"\n          inputRef={inputRef}\n          autoFocus\n          style={tw`pl-2 text-base`}\n        /\u003e\n  );\n};\n```\n\n## Contributing\n\nSee the [contributing guide](CONTRIBUTING.md) to learn how to contribute to the repository and the development workflow.\n\n## License\n\nMIT\n\n---\n\nMade with [create-react-native-library](https://github.com/callstack/react-native-builder-bob)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Famjadbouhouch%2Frn-text-editor","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Famjadbouhouch%2Frn-text-editor","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Famjadbouhouch%2Frn-text-editor/lists"}