-
Notifications
You must be signed in to change notification settings - Fork 24
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
Library not working with react-native-web #1164
Comments
@ericlifs Hello. To be honest, I don't know why styled-breakpoints doesn't work with styled-components/native. Solving this problem requires deep immersion and a lot of time, which, unfortunately, I don’t have right now. If you are interested and have a desire to help, you can create pull request with your solution. |
@ericlifs The styled-components documentation (under react-native) says the following: "Some of the differences to the web-version are, that you cannot use the keyframes and createGlobalStyle helpers since React Native doesn't support keyframes or global styles. We will also warn you if you use media queries or nest your CSS." It just says that you can't use styled-breakpoints with react-native. |
Hey team,
First of all thanks for this awesome tool. Secondly, I'm facing an issue with my react-native-web project which uses styled-components where none of my responsive styles get applied to the dom elements:
Here's my component definition:
As you can see, I'm importing styled from
styled-components/native
and my component is a react native's Text component. And this is what I'm seeing on the DOM:If I replace my styled-components' import and the component to something like:
The DOM output is the expected one and the responsiveness works perfectly:
I'm not sure if I have to do something extra for making this awesome tool with react-native-web or if there is no way of making it work.
Thanks,
Eric.
The text was updated successfully, but these errors were encountered: