Skip to content

Instantly share code, notes, and snippets.

@hosembafer
Created April 15, 2018 20:46
Show Gist options
  • Save hosembafer/0ea6788ba838815f5586eadafebba77a to your computer and use it in GitHub Desktop.
Save hosembafer/0ea6788ba838815f5586eadafebba77a to your computer and use it in GitHub Desktop.
React Native Bold
const B = (props) => <Text style={{fontWeight: "bold"}}>{props.children}</Text>;
// ...
<Text>This is a sentence <B>with</B> one word in bold</Text>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment