react-native-markdown-renderer icon indicating copy to clipboard operation
react-native-markdown-renderer copied to clipboard

how to change font style of text

Open onisaint opened this issue 6 years ago • 2 comments
trafficstars

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

onisaint avatar Jul 01 '19 06:07 onisaint

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

Villar74 avatar Aug 06 '19 15:08 Villar74