Security News
Highlights from the 2024 Rails Community Survey
A record 2,709 developers participated in the 2024 Ruby on Rails Community Survey, revealing key tools, practices, and trends shaping the Rails ecosystem.
react-native-prismic-richtext-reloaded
Advanced tools
I forked this from [here](https://github.com/Spoutnik97/react-native-prismic-richtext). This fork will be deleted in the future as soon as my branch is merged into the main repository.
I forked this from here. This fork will be deleted in the future as soon as my branch is merged into the main repository.
The reason to fork was to update the prismic richtext library to the latest version. This also now uses the types defined by prismic for as much as possible.
yarn add react-native-prismic-richtext-reloaded
<RichText
richText={prismicRichTextResponse}
// default style for texts
defaultStyle={{
color: '#000',
fontSize: 17,
}}
// specific style for each tag
styles={{
hyperlink: { textDecorationLine: 'underline' },
hyperlinkHover: {
textDecorationLine: undefined,
},
list: {
marginLeft: 8,
marginVertical: 8,
},
'o-list': {
marginLeft: 8,
marginVertical: 8,
},
strong: {
fontWeight: 'bold',
},
em: {
fontStyle: 'italic',
},
}}
// Optionally handle links within your app
onLinkPress={(data: LinkType | undefined) => {
if (data?.link_type === 'Web') {
// This is a bug in prismic, it currently does not allow other link types
const url = data.url.replace('https://makerist-ar://', 'makerist-ar://')
return Linking.openURL(url)
}
}
// Optionally overwrite rendering with custom component
serializers={{
embed: (_type, element, _text, _children, _key) => {
const embed = element as RTEmbedNode
return <Text key={key}>{embed.oembed.title}</Text>
},
}}
/>
FAQs
I forked this from [here](https://github.com/Spoutnik97/react-native-prismic-richtext). This fork will be deleted in the future as soon as my branch is merged into the main repository.
We found that react-native-prismic-richtext-reloaded 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
A record 2,709 developers participated in the 2024 Ruby on Rails Community Survey, revealing key tools, practices, and trends shaping the Rails ecosystem.
Security News
In 2023, data breaches surged 78% from zero-day and supply chain attacks, but developers are still buried under alerts that are unable to prevent these threats.
Security News
Solo open source maintainers face burnout and security challenges, with 60% unpaid and 60% considering quitting.