Skip to content

Commit 8e47e71

Browse files
authored
Merge pull request #59 from sghiassy/sghiassy.ISSUE-50
ISSUE-50: In React-Native v0.28 the Carousel no longer scrolls horizo…
2 parents 0b90b77 + 958b5d2 commit 8e47e71

File tree

1 file changed

+3
-11
lines changed

1 file changed

+3
-11
lines changed

Carousel.js

+3-11
Original file line numberDiff line numberDiff line change
@@ -83,9 +83,9 @@ var Carousel = React.createClass({
8383

8484
style = i === this.state.activePage ? { color: this.props.indicatorColor } : { color: this.props.inactiveIndicatorColor };
8585
indicators.push(
86-
<Text
87-
style={[style, { fontSize: this.props.indicatorSize }]}
88-
key={i}
86+
<Text
87+
style={[style, { fontSize: this.props.indicatorSize }]}
88+
key={i}
8989
onPress={this.indicatorPressed.bind(this,i)}
9090
>
9191
{ i === this.state.activePage ? this.props.indicatorText : this.props.inactiveIndicatorText }
@@ -154,14 +154,6 @@ var Carousel = React.createClass({
154154
});
155155

156156
var styles = StyleSheet.create({
157-
container: {
158-
justifyContent: 'center'
159-
},
160-
page: {
161-
alignItems: 'center',
162-
justifyContent: 'center',
163-
borderWidth: 1,
164-
},
165157
pageIndicator: {
166158
position: 'absolute',
167159
flexDirection: 'row',

0 commit comments

Comments
 (0)