Skip to content

Commit bd0a799

Browse files
committed
Fix bottomButton with new renderItem
1 parent d140dc2 commit bd0a799

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

DefaultSlide.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,12 @@ import { StyleSheet, Text, View, Image, Dimensions, Platform } from 'react-nativ
33

44
export default class DefaultSlide extends React.PureComponent {
55
render() {
6-
const {item, index, dimensions} = this.props
6+
const { item, dimensions, bottomButton } = this.props;
77
const style = {
88
flex: 1,
99
backgroundColor: item.backgroundColor,
1010
width: dimensions.width,
11-
paddingBottom: item.bottomButton ? 132 : 64,
11+
paddingBottom: bottomButton ? 132 : 64,
1212
};
1313
return (
1414
<View style={[styles.mainContent, style]}>

0 commit comments

Comments
 (0)