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
Examples React Native #4263
Comments
It works exactly the same as styled-components for the web. The only difference is when creating styled components: import styled from "styled-components/native";
export const MyButton = styled.TouchableOpacity`
background-color: black;
padding: 20px;
`; You may need to use some CSS commands that only work for react native, such as margin-horizontal, padding-vertical, elevation etc. If you're using {
"plugins": [
{
"name": "typescript-styled-plugin",
"lint": {
"validProperties": [
"shadow-color",
"shadow-opacity",
"shadow-offset",
"shadow-radius",
"padding-horizontal",
"padding-vertical",
"margin-vertical",
"margin-horizontal",
"text-align-vertical",
"tint-color",
"elevation"
]
}
}
]
} |
Hello devs, is there any example directory ready for React Native, or do we just have documentation to learn how to use this library?
Thanks!!!!
The text was updated successfully, but these errors were encountered: