Skip to content

Commit

Permalink
Fix bottomButton with new renderItem
Browse files Browse the repository at this point in the history
  • Loading branch information
Jacse committed Jul 6, 2019
1 parent d140dc2 commit bd0a799
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions DefaultSlide.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,12 @@ import { StyleSheet, Text, View, Image, Dimensions, Platform } from 'react-nativ

export default class DefaultSlide extends React.PureComponent {
render() {
const {item, index, dimensions} = this.props
const { item, dimensions, bottomButton } = this.props;
const style = {
flex: 1,
backgroundColor: item.backgroundColor,
width: dimensions.width,
paddingBottom: item.bottomButton ? 132 : 64,
paddingBottom: bottomButton ? 132 : 64,
};
return (
<View style={[styles.mainContent, style]}>
Expand Down

0 comments on commit bd0a799

Please sign in to comment.