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

Allow prebuilt styles as props #17

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

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