
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
react-native-hyperlink-text
Advanced tools
import { StyleSheet } from 'react-native';
import HyperlinkText from 'react-native-hyperlink-text';
const styles = StyleSheet.create({
link: {
color: 'blue',
fontSize: 22,
},
base: {
color: 'black',
fontSize: 18,
},
});
<HyperlinkText
value={'Visit my website and check out my portfolio @https://friendly-robot.netlify.com/portfolio'}
baseStyle={styles.base}
linkStyle={styles.link}
/>
npm i -S react-native-hyperlink-text
A string containing urls or not (refer to hyperlinks) that will be converted to a series of <Text> wrapping the content.
An array of objects each with a key value pair for assigning urls to keywords.
For example: [{ portfolio: 'https://friendly-robot.netlify.com/portfolio' }]
This will map every instance of "portfolio" and transform it into a link that directs to that url. This means that the value and hyperlinks in the example above will look like this:
<HyperlinkText
value={'Vist my website and check out my portfolio!'}
hyperlinks={[
{ website: 'https://friendly-robot.netlify.com' },
{ portfolio: 'https://friendly-robot.netlify.com/portfolio' }
]}
baseStyle={styles.base}
linkStyle={styles.link}
/>
A style object to apply to all <Text> elements.
A style object to apply only to hyperlink <Text> elements.
Map hyperlinks backwards as well, meaning if the link is provided in the string, every instance of it will be shortened to a keyword. Currently the opposite is true: keywords are turned into links.
License The MIT License Copyright (c) 2019 Andy Li
FAQs
Wrapper component for text with hyperlinks
We found that react-native-hyperlink-text 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.

Security News
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.