Skip to content

Allow prebuilt styles as props#17

Open
orinoco wants to merge 1 commit intoRiglerr:masterfrom
orinoco:master
Open

Allow prebuilt styles as props#17
orinoco wants to merge 1 commit intoRiglerr:masterfrom
orinoco:master

Conversation

@orinoco
Copy link

@orinoco orinoco commented Jan 10, 2018

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

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

Successfully merging this pull request may close these issues.

1 participant