-
Notifications
You must be signed in to change notification settings - Fork 498
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
React Native #1113
Comments
Hi, I am using this library with React Native and React Sketch.app, it works fine, but you need to use React Native shouldn't let you pass styles as props, you need to use styles the same as React web: Here's some code of mine, for using |
I'm trying to accomplish the same thing. @macintoshhelper Love your work! I've been experimenting myself with adding support for media queries using I've got a couple of versions working with The only two problems I have:
I would love to see support for #1133 to at least solve this first issue. |
Thanks! What my polyfill is doing, is resolving/flattening breakpoint array props before they reach Some code that may be useful (for react-sketchapp, but can be refactored to react-native by moving LayoutProvider to the app root): https://github.com/elemental-design/react-sketchapp-examples/tree/master/responsive-devices/src Issue #949 has another implementation example also btw.
|
@macintoshhelper Thanks that helped a lot! I've made an extensions for Emotion (was a bit easier to extend than Styled Components) that adds support for React Native Extended Stylesheet, with support for dynamic responsiveness. How it works is that if a component has any breakpoints / media queries, I'll add a @jxnblk Support for #1133 would again, be appreciated since now I have to manually filter out 'screen and' properties from the media queries which isn't ideal. Edit: |
I'm trying to use styled-system with theme, but doesn't work. I try color, space, but the component not understand the theme things. Anyone have the same problem? |
Hi @viniarruda, the theming is up to |
Oww! It works. Thank you man, you save me haha. I'm tried using the ThemeProvider for styled-components, not /native. This is the problem, I do not thinked about this. |
is react native supported? because I just initiated a project and saw styles as props already work(without styled-components and styled-systems):
are there any conflict between them? why would someone use styled-system in react-native?
The text was updated successfully, but these errors were encountered: