-
Notifications
You must be signed in to change notification settings - Fork 135
New issue
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
TS error: When I use position restyleFunctions #267
Comments
Okay I miss zIndices section... -_- |
One question, why I need have section zIndices (if I what use position restyleFuction)? |
I was having the same issue with the I guess it'd be nice if maybe Restyle came with some defaults for some common properties that could be over-written if the user wants to, ala Tailwind, e.g.: {
border: {
normal: '#00000033',
white: '#FFFFFF',
black: '#000000,
},
borderRadii: {
xs: 2,
sm: 3,
md: 4,
lg: 6,
xl: 8,
}
} But they're not too difficult to add. |
This solved the problem for me: |
Hi, when you're creating a new theme these properties are required to be described at list with
Yeh, they might look optional in types definitions, but this trick helps me to avoid any errors. |
Current behavior
Hello, I got this error:
My code:
Expected behavior
No error:)
Platform:
Environment
"react": "18.2.0",
"react-native": "0.71.9",
"@shopify/restyle": "^2.4.2",
"typescript": "~4.8.4"
The text was updated successfully, but these errors were encountered: