You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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:
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:
import styled from 'styled-components';
import { up, down, between } from 'styled-breakpoints';
export const H3Headline = styled.span`
... this is the same code I had before
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:
@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: