
Security News
Axios Supply Chain Attack Reaches OpenAI macOS Signing Pipeline, Forces Certificate Rotation
OpenAI rotated macOS signing certificates after a malicious Axios package reached its CI pipeline in a broader software supply chain attack.
@anzeblabla/react-native-markdown-editor
Advanced tools
This is a rewrite of [react-native-markdown-editor](https://www.npmjs.com/package/react-native-markdown-editor), a library for rendering a markdown editor for the markdown with helper buttons to easily write markdown. It uses [react-native-markdown-view]
This is a rewrite of react-native-markdown-editor, a library for rendering a markdown editor for the markdown with helper buttons to easily write markdown. It uses react-native-markdown-view to preview the markdown.
Install the node module:
yarn add react-native-markdown-editor
or with npm:
npm install --save react-native-markdown-editor
Then see Usage for futher details
Bold Text
Italic Text
Underline text
Strikethrough
Inline code
Url Links:
function codeExample(arg) {
}
Import the editor through
import { MarkdownEditor } from 'react-native-markdown-editor';
And use like this this in the jsx
<MarkdownEditor />
And pass a function onMarkdownChange which will be callback when markdown is changed
<MarkdownEditor onMarkdownChange={this.onTextChange} />
It can be used with a toolbar and have a submit menu option there!
You can give a custom list of buttons you want to give the default is Formats by speicifying
<MarkdownEditor Formats={YOUR_CUSTOM_Formats} />
You can customize the helper button using the markdownButton prop.
The buttons are rendered using a FlatList and the data passed is the Formats
markdownButton can be method like
const defaultMarkdownButton = ({ item, getState, setState }) =>
<Button
title={item.key}
onPress={() => item.onPress({ getState, setState, item })}
color={FOREGROUND_COLOR}
style={inlinePadding}
/>
Where item is an each object in the Formats list
You can also import the methods used in Formats by using
import { applyWrapFormatNewLines, applyWrapFormat, applyWebLinkFormat, applyListFormat } from 'react-native-markdown-editor';
You can add a style key in the Formats.js and this will be used while rendering the button
{ key: 'B', wrapper: '**', onPress: applyWrapFormat, style: { fontWeight: 'bold' } },
| Name | Type | Default | Description |
|---|---|---|---|
| Formats | Array | Formats | Elements for the markdown buttons |
| markdownButton | function | defaultMarkdownButton | A custom function to render the markdown buttons |
| onMarkdownChange | function | Callback function, calls when markdown is typed | |
| showPreview | boolean | false | To show the markdown preview by Default |
PR's/Issues/Bugs or suggestions are welcomed.
The MIT License.
FAQs
This is a rewrite of [react-native-markdown-editor](https://www.npmjs.com/package/react-native-markdown-editor), a library for rendering a markdown editor for the markdown with helper buttons to easily write markdown. It uses [react-native-markdown-view]
We found that @anzeblabla/react-native-markdown-editor demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 0 open source maintainers collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
OpenAI rotated macOS signing certificates after a malicious Axios package reached its CI pipeline in a broader software supply chain attack.

Security News
Open source is under attack because of how much value it creates. It has been the foundation of every major software innovation for the last three decades. This is not the time to walk away from it.

Security News
Socket CEO Feross Aboukhadijeh breaks down how North Korea hijacked Axios and what it means for the future of software supply chain security.