This repository has been archived by the owner on Apr 16, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 4
Remove styles folder #6
Labels
Comments
I just added some styles helpers in the styles/index.js file. The function addStyleHelpers provides an hoc that manages styles composition cascade order, there's an example of it's use in |
Cascade? Really? I'm sorry, I don't understand where you're going with this
but there's too much web stuff here. Nobody cascades with styles with react
or react native. Or at least they shouldn't.
…On May 1, 2017 11:45 AM, "william woodruff" ***@***.***> wrote:
I just added some styles helpers in the styles/index.js file. The function
addStyleHelpers provides an hoc that manages styles composition cascade
order, there's an example of it's use in src/screens/home/components/
HomeView.js, this also is now described in the README [here
<https://github.com/wswoodruff/strangeluv-native#styling>]
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#6 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ADW7T48GCLQtZsGH77Uh5ZqOCI8ciDd4ks5r1f4LgaJpZM4NMyk7>
.
|
The index.js of the styles folder has some inheritance helpers for styles, so that styles can be scoped easier. If you wrap your component in |
jdonisvitch
pushed a commit
to jdonisvitch/strangeluv-native
that referenced
this issue
Dec 6, 2018
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
I haven't seen all too many RN apps use global styles. The style folder is a vestige from the web project you can leave behind. I'd suggest creating an example component in the
component
folder with examplestylesheet
usage.The text was updated successfully, but these errors were encountered: