react / react/react-strict-dom
(feature) CSS calc function
Open
Nobody has claimed this yet.
feature
- Dominant language
- JavaScript
- Stars
- 3.6k
- Forks
- 206
- PR merge metrics
- No merged PRs in 30d
Description
Describe the issue
import { css } from 'react-strict-dom';
const styles = css.create({
test: {
width: 150,
height: 'calc(100px + 50px)',
backgroundColor: 'pink',
},
});
css calc not work in react native (it works in web)
Expected behavior
css calc works in react native
Steps to reproduce
code above
Test case
No response
Additional comments
No response
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by running the reproduction shown in the issue and trace how style values are handled for React Native, comparing that path with the working web behavior. Done means the provided calc expression works in React Native without regressing its web behavior; the issue names no files or tests, so repository exploration is required.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript, react, react-native
- Domain
- frontend, mobile
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Quiet
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100