spoutnik97 / react-native-prismic-richtext Goto Github PK
View Code? Open in Web Editor NEWLicense: MIT License
License: MIT License
We should think of updating to @prismicio/richtext
and it's companion @prismicio/types
to get rid of the custom types. That way we can use the official type dictionary and the latest code of the richtext parser.
Currently links open in another window, but at times rich text might link to another page. If we can expose a onLinkPress(url, target)
style callback we can intercept the call to open a browser and supply our own behaviour.
What do you think?
For anything else "React is not defined" error is returned and app crashes.
H1 through H6 won't make the app crash, but no styles are applied to these elements .
hey thanks for this! i think it's going to be super useful to us.
I need to include YouTube videos that are embedded in a document. Since it would be hard to offer such a thing from this library (there are just too many ways to embed stuff), I would build a thing where you could override the serializerWithStyle
with own renderers. Maybe by adding a dictionary that you can give to the app with all renderers you want to implement on your own. That way you also could implement a h1
renderer if you prefer or the needed embed
type renderer.
What do you think?
I am using a custom font but seems it's not recognized when I am adding it to the default style.
const richTextStyle = {
strong: {
fontWeight: "bold",
},
};
const defaultStyle = {s
fontFamily: "SuperSans",
};
<RichText
defaultStyle={defaultStyle}
richText={data.title}
styles={richTextStyle}
/>
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.