
Research
Namastex.ai npm Packages Hit with TeamPCP-Style CanisterWorm Malware
Malicious Namastex.ai npm packages appear to replicate TeamPCP-style Canister Worm tradecraft, including exfiltration and self-propagation.
react-native-draftjs-render
Advanced tools
A React Native render for Draft.js model.
Join the #react-native-render channel on DraftJS Slack team.
Install React Native Draft.js Render on your React Native project, using NPM or Yarn:
yarn add react-native-draftjs-render
# or...
npm i -S react-native-draftjs-render
Just import and insert your Draft.js model on getRNDraftJSBlocks:
import React from 'react';
import {
ScrollView,
AppRegistry,
} from 'react-native';
import getRNDraftJSBlocks from 'react-native-draftjs-render';
import contentState from 'DraftJs/contentState';
const MyApp = () => {
const blocks = getRNDraftJSBlocks({ contentState });
return (
<ScrollView style={{ flex: 1 }}>{blocks}</ScrollView>
);
};
AppRegistry.registerComponent('MyApp', () => MyApp);
See our sample folder for more details.
RNDraftJSRender comes with default styles, but you can use your own:
import React from 'react';
import {
AppRegistry,
ScrollView,
StyleSheet,
} from 'react-native';
import getRNDraftJSBlocks from 'react-native-draftjs-render';
import contentState from 'DraftJs/contentState';
const styles = StyleSheet.flatten({
paragraph: {
color: 'pink',
fontSize: 18,
},
link: {
color: 'blue',
fontWeight: 'bold',
},
});
const MyApp = () => {
const blocks = getRNDraftJSBlocks({ contentState, customStyles: styles });
return (
<ScrollView style={{ flex: 1 }}>{blocks}</ScrollView>
);
};
AppRegistry.registerComponent('MyApp', () => MyApp);
See more at Custom Styles documentation.
To develop using example react-native project:
git clone git@github.com:globocom/react-native-draftjs-render.git
cd react-native-draftjs-render/
make setup
To run tests:
make test
To watch lib changes appearing on Sample App:
make watch
To run sample app in iOS:
make ios
To run sample app in Android:
make android
FAQs
React Native render for draft.js model
The npm package react-native-draftjs-render receives a total of 1,748 weekly downloads. As such, react-native-draftjs-render popularity was classified as popular.
We found that react-native-draftjs-render demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 7 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.

Research
Malicious Namastex.ai npm packages appear to replicate TeamPCP-style Canister Worm tradecraft, including exfiltration and self-propagation.

Product
Explore exportable charts for vulnerabilities, dependencies, and usage with Reports, Socket’s new extensible reporting framework.

Product
Socket for Jira lets teams turn alerts into Jira tickets with manual creation, automated ticketing rules, and two-way sync.