Giter Site home page Giter Site logo

react-native-prismic-richtext's People

Contributors

bitboxer avatar spoutnik97 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

Forkers

bitboxer mobu34

react-native-prismic-richtext's Issues

thank you!

hey thanks for this! i think it's going to be super useful to us.

Render embeds

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?

Unrecognized Font Family

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}
/>

Upgrade to @prismicio/richtext 2.0.1

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.

Only bold, italic text can be displayed

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 .

Provide a callback for link press

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?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.