We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
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
Given this:
const TaskScrollWrapper = styled.ScrollView` padding: 10; background-color: red; `; const NewTaskBanner = styled.Text` font-size: 18px; text-align: center; `; const content = ( <TaskScrollWrapper> <NewTaskBanner> Hello World</NewTaskBanner> </TaskScrollWrapper> );
Then I get an error with RN "react-native": "0.42.0", this is with "styled-components": "^1.4.5",.
"react-native": "0.42.0"
"styled-components": "^1.4.5",
Of course it does work when I drop the 'px', Thanks.
The text was updated successfully, but these errors were encountered:
Styled-components v1 is using v1 of this library. Unit support was only added in v2.
Sorry, something went wrong.
@jacobp100 Okay, so besides closing is there any advice? I should just wait until styled-components catches up?
It's in SC v2, since it was a breaking change. Not sure what the timeline for that being released though!
Also you can omit units for now, and we have a code transform to add them later.
No branches or pull requests
Uh oh!
There was an error while loading. Please reload this page.
Given this:
Then I get an error with RN

"react-native": "0.42.0"
, this is with"styled-components": "^1.4.5",
.Of course it does work when I drop the 'px', Thanks.
The text was updated successfully, but these errors were encountered: