Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

how to change font style of text #112

Open
onisaint opened this issue Jul 1, 2019 · 2 comments
Open

how to change font style of text #112

onisaint opened this issue Jul 1, 2019 · 2 comments

Comments

@onisaint
Copy link

onisaint commented Jul 1, 2019

how can i change the fontFamily of the text rendered ??
i tried this

const mdStyle = StyleSheet.create({
  heading: {
    borderBottomWidth: 1,
    fontFamily: 'Metropolis-SemiBold',
  },
  heading1: {
    backgroundColor: '#000000',
    color: '#FFFFFF',
    fontFamily: 'Metropolis-SemiBold',
  },
  heading2: {
    fontFamily: 'Metropolis-SemiBold',
  },
  heading3: {
    fontFamily: 'Metropolis-SemiBold',
  },
  heading4: {
    fontFamily: 'Metropolis-SemiBold',
  },
  heading5: {
    fontFamily: 'Metropolis-SemiBold',
  },
  heading6: {
    fontFamily: 'Metropolis-SemiBold',
  },
  strong: {
    fontFamily: 'Metropolis-SemiBold',
    color: theme.shades.cement,
  },
  text: {
    fontFamily: 'Metropolis-Regular',
    color: theme.shades.cement,
  },
});

RN = 0.59.8
react = 16.8.3
native markdown = 3.2.8

@Merciful12
Copy link

maybe it can help you https://github.com/mientjan/react-native-markdown-renderer/blob/master/src/lib/styles.js

@Villar74
Copy link

Villar74 commented Aug 6, 2019

not working for me also( even when i set rules for render

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants