I'm using styled-components in react-native with the calc()
function
const MyElement = styled(MyText)`
position: absolute;
left: calc(20% - 10px);
`
Error
JSON value 'calc(20% - 10px)' of type NSString cannot be converted to YGValue. Did you forget the % or pt suffix?
I already found this solution (CSS' calc() in styled-components). But I am already using whitespaces.
What am I doing wrong?