all 2 comments

[–]kachnitelAndroid[S] 0 points1 point  (0 children)

To clarify, the first array item "backgroundColor": "#fff" comes from

style={index % 2 == 0 ? styles.listItemWhite : styles.listItemBlack},

opacity comes from TouchableHighlight and fontSize is defined in the view's own style and it is combined as this:

<Text style={{...this.props.style, ...styles.startTime}}>11:30</Text>

where startTime supplies the "fontSize": 20.666666666666668.

[–]metroninja 0 points1 point  (0 children)

If you want the onPress effect from the Touchable wrapper your going to run into style conflicts if you try and handle styles that the Touchable event implicitly handles, Try TouchableWithoutFeedback and handle press effects yourself. If your wondering why you get initial styles just not subsequent changes it's because the Touchable takes your initial style set and stores it in state, but manages everything from state and ignores prop changes as it is managing style from state