Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
@gorangajic/react-native-markdown
Advanced tools
A component for rendering Markdown in React Native
A component for rendering Markdown in React Native. Pull requests welcome.
css-layout
's' Layout.c
and Layout.h
files.npm install react-native-markdown --save
All you need is to require
the react-native-markdown
module and then use the
<Markdown/>
tag.
var React = require('react-native');
var {
AppRegistry,
StyleSheet,
View
} = React;
var Markdown = require('react-native-markdown');
var mdApp = React.createClass({
render: function() {
return (
<View>
<Markdown>
Some *really* basic **Markdown**.
{'\n\n'}
| # | Name | Age |{'\n'}
|---|--------|-----|{'\n'}
| 1 | John | 19 |{'\n'}
| 2 | Sally | 18 |{'\n'}
| 3 | Stream | 20 |{'\n'}
</Markdown>
</View>
);
}
});
AppRegistry.registerComponent('mdApp', () => mdApp);
style
Default style properties will be applied to the markdown. You will likely want to customize these styles, the following properties can be used to modify the rendered elements:
Note: The text inside the parentheses denotes the element type.
autolink
(<Text>
) - WIPblockQuote
(<Text>
) - WIPbr
(<Text>
)codeBlock
(<View>
) - WIPdel
(<Text>
)em
(<Text>
)heading
(<Text>
) - Also heading1
through heading6
hr
(<View>
)image
(<Image>
) - Implemented but size is fixed to 50x50
until auto width is supported by React Native.inlineCode
(<Text>
)link
(<Text>
) - WIPlist
(<View>
) - Also listItem
(<View>
), listItemBullet
(<Text>
) and listItemNumber
(<Text>
)mailto
(<Text>
) - WIPnewline
(<Text>
) - WIPparagraph
(<View>
)plainText
(<Text>
) - Use for styling text without any associated stylesstrong
(<Text>
)table
(<View>
)tableHeader
(<View>
)tableHeaderCell
(<Text>
)tableRow
(<View>
)tableRowCell
(<View>
)tableRowLast
(<View>
, inherits from tableRow
)text
(<Text>
) - Inherited by all text based elementsu
(<View>
)url
(<Text>
)view
(<View>
) - This is the container View
that the Markdown is rendered in.FAQs
A component for rendering Markdown in React Native
The npm package @gorangajic/react-native-markdown receives a total of 0 weekly downloads. As such, @gorangajic/react-native-markdown popularity was classified as not popular.
We found that @gorangajic/react-native-markdown demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer 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
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.