yarn styled components code example
Example 1: styled componets npm
npm i styled-components
Example 2: styled-components
npm install --save styled-components
# yarn
yarn add styled-components
Example 3: yarn styled components
yarn add styled-components
Example 4: styled components attrs
export const TextInputElement = styled.TextInput.attrs(props => ({
placeholderTextColor: props.ColorPlaceholder,
}))`
font-size: 15px;
line-height: 18px;
color: '#000';
`;