constelation / monorepo

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

Style prop not recognized when wrapped with event_ #83

Open heaversm opened 7 years ago

heaversm commented 7 years ago

This works:

<Event_
        onPress={this.handleGenderOptionPress}
        pressEffect='opacity'
        activeOpacity={.8}
      >
        <Style_
          borderBottomWidth={1}
          borderBottomColor={'white'}
          borderBottomStyle='solid'
        >
          <View
            paddingVertical={21}
            grow={false}
          >
            <Header
              color={this.props.isActive ? 'WHITE' : 'B3'}
              size={14}
              spacing={1}
            >
              {this.props.gender}
            </Header>
          </View>
        </Style_>
      </Event_ >

but this does not:

<Event_
        onPress={this.handleGenderOptionPress}
        pressEffect='opacity'
        activeOpacity={.8}
      >
        <View
          paddingVertical={21}
          grow={false}
          style={{
            borderBottomWidth: 1,
            borderBottomColor: 'white',
            borderBottomStyle: 'solid',
          }}
        >
         [...]
        </View>
      </Event_>

If the component is removed to the second example, the styles are applied correctly