xxxxxxxxxx
yarn add -D @types/styled-components-react-native
# add in tsconfig.json
"compilerOptions: {
"types": [
"@types/styled-components-react-native"
]
}
xxxxxxxxxx
2022
# React React Native
yarn add @types/styled-components @types/styled-components-react-native
React Native only: If your tsconfig assigns types then you will need to add "styled-components-react-native" there. For example:
"types": ["jest", "styled-components-react-native"],
xxxxxxxxxx
# The `styled-components/native` types moved to `@types/styled-components-react-native`
yarn add -D @types/styled-components-react-native
xxxxxxxxxx
yarn add -D @types/styled-components-react-native
styled-components/native types moved to @types/styled-components-react-native
xxxxxxxxxx
# React React Native
yarn add @types/styled-components @types/styled-components-react-native
React Native only: If your tsconfig assigns types then you will need to add "styled-components-react-native" there. For example:
"types": ["jest", "styled-components-react-native"],