react-native-hr
react-native-hr copied to clipboard
Allow prebuilt styles as props
If I have my own stylesheet:
const styles = StyleSheet.create({ hrLineStyle: { backgroundColor: Colors.lightGrey.withAlpha(0.5), height: 1, }, hrTextStyle: { color: Colors.magenta, fontSize: 14, }, ... });
It's nice to be able to use that as a prop:
<Hr text="OR WITH EMAIL" lineStyle={styles.hrLineStyle} textStyle={styles.hrTextStyle} />