Passing style props to React Native core components in styled-components

// using the `attrs` constructor to pass style props
// see https://github.com/styled-components/styled-components/pull/365
// and https://github.com/styled-components/styled-components/issues/149
const Container = styled.TouchableHighlight.attrs({
  underlayColor: Color.primaryDark,
})`
  justify-content: center;
  align-content: center;
  align-items: center;
`

Please note that this site and the posts on it are, and will always be, a work in progress. If i waited for perfection, i’d never get anything done.