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.
flex: 0 1 auto
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
the default value for the flex shorthand (0 1 auto) fails to be parsed by css-to-react-native when passed through styled-components
flex
0 1 auto
css-to-react-native
styled-components
repro case:
import { styled } from 'styled-components/native' const MyComponent = styled.View` flex: 0 1 auto; `
The text was updated successfully, but these errors were encountered:
seems as if https://github.com/styled-components/css-to-react-native/blob/master/src/transforms/flex.js#L33 may hold the key here. Perhaps
function matchesLengthOrAuto(tokenStream){ return tokenStream.matches(LENGTH) || tokenStream.matches(AUTO); } // ... later else if (flexBasis === undefined && matchesLengthOrAuto(tokenStream)) { flexBasis = tokenStream.lastValue; } // ...
could be a workable solution.
Sorry, something went wrong.
No branches or pull requests
the default value for the
flex
shorthand (0 1 auto
) fails to be parsed bycss-to-react-native
when passed throughstyled-components
repro case:
The text was updated successfully, but these errors were encountered: