Skip to content
This repository was archived by the owner on Nov 9, 2017. It is now read-only.

Commit

Permalink
Fixed background color for the slide deck
Browse files Browse the repository at this point in the history
  • Loading branch information
whs committed May 5, 2016
1 parent 15f0012 commit 5613c33
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions components/SlideDeck/view.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import Swiper from 'react-native-page-swiper';
var styles = StyleSheet.create({
deck: {
flex: 1,
justifyContent: 'center'
justifyContent: 'center',
},
slider: {
flex: 1,
Expand Down Expand Up @@ -70,7 +70,9 @@ export default class SlideDeck extends Component {
}

return (
<View style={styles.deck} onLayout={this._onLayout}>
<View style={[styles.deck, {
backgroundColor: this.props.presenting ? 'black' : '#cccccc',
}]} onLayout={this._onLayout}>
<Swiper
index={0}
pager={false}
Expand Down

0 comments on commit 5613c33

Please sign in to comment.