constelation / monorepo

Mono repo for constelation's Components, functions, and CONSTANTS
https://constelation.github.io/monorepo/
MIT License
12 stars 3 forks source link

text component ignores color style when wrapped with event_ #64

Open heaversm opened 7 years ago

heaversm commented 7 years ago

In the code below:

  <Text
    size={13}
    fontFamily='helvetica'
    style={{ color: '#8d8d8d' }}
  >
    {this.props.title}
  </Text>

When I wrap the above text component with an event, the text turns from grey back to black, as seen below:

<Event_
  activeOpacity={this.props.data ? 0.8 : 1}
  hitSlop={SLOP}
  pressEffect='opacity'
  onPress={this.handleRecommendedLinkClick}
>
  <Text
    size={13}
    fontFamily='helvetica'
    style={{ color: COLORS.GREY_TEXT }}
  >
    {this.props.title}
  </Text>
</Event_>

Issue can be resolved by using a string for the color, such as '8D'