We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
hi, for this code i get a error : Error:Failed to parse decleration margin:13 in styled-compnent usage
const ViewCoverHeader =styled.View` margin:${wp('2%')}; `;
update: i added px at the end of line and fixed, margin:${wp('2%')}px; but this problem not happening for with and height
margin:${wp('2%')}px;
im using this version of styled-component "styled-components": "^4.0.0"
"styled-components": "^4.0.0"
The text was updated successfully, but these errors were encountered:
Try this instead
const margin = wp('2%')
const ViewCoverHeader =styled.View margin:${margin};
make sure to add the backticks and try
Sorry, something went wrong.
@medelvann - did @anmolpandeyy's suggestion work? Can this issue be closed?
No branches or pull requests
hi, for this code i get a error :
Error:Failed to parse decleration margin:13 in styled-compnent usage
update:
i added px at the end of line and fixed,
margin:${wp('2%')}px;
but this problem not happening for with and height
im using this version of styled-component
"styled-components": "^4.0.0"
The text was updated successfully, but these errors were encountered: