react-native-looped-carousel icon indicating copy to clipboard operation
react-native-looped-carousel copied to clipboard

pageStyle prop doesn't apply style

Open beausmith opened this issue 8 years ago • 0 comments

The pageStyle prop doesn't apply styles because the <TouchableWithoutFeedback> component does not support style.

Issue

See index.js lines 142-144:

<TouchableWithoutFeedback style={[{ ...size }, this.props.pageStyle]} key={`page${i}`}>
  {page}
</TouchableWithoutFeedback>

Repro

Try setting styles for pageStyle or use this simple repro:

<TouchableWithoutFeedback style={{backgroundColor: 'tan'}}>
  <Text>TouchableWithoutFeedback</Text>
</TouchableWithoutFeedback>

Fix

Since the <TouchableWithoutFeedback> component is not capturing any touches, it can be replaced with a View element.

beausmith avatar May 11 '17 22:05 beausmith