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
added functional component examples with hooks #1623
Conversation
added functional component examples with hooks
Deploy preview for react-native ready! Built with commit 2c7d766 https://deploy-preview-1623--react-native.netlify.com Changes to Thank you for your contributions. |
@@ -9,7 +9,61 @@ A React component for displaying text. | |||
|
|||
In the following example, the nested title and body text will inherit the `fontFamily` from `styles.baseText`, but the title provides its own additional styles. The title and body will stack on top of each other on account of the literal newlines: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do you think that here we can have examples of how to use each props?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Re:
Do you think that here we can have examples of how to use each props?
I'd love to see that in the main example! Is it possible, @tsawan? Perhaps in a follow up submit?
Also, I don't think we need class component examples pas the first!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
sorry @rachelnabors I was away for a while. I also remember running prettier but I've noticed you prettifying snack example to change it to double quotes. Do you have a different prettier config from the one in repo.? |
Hi, I've added functional component examples with hooks for Text component. #1579