Using typescript interface in styled-components
npm i ts-styled-components --save
yarn add ts-styled-components
import withProps from 'ts-styled-components'
interface IProps {
isTest: boolean,
}
const styles = {
containers: withProps<IProps>()(styled.view)`
width: ${(props) => props.isTest ? '600' : '200' }px;
`
};