From bd0a7996d841046ee9539e22470050ead02fdde4 Mon Sep 17 00:00:00 2001 From: Jacob Lauritzen Date: Sat, 6 Jul 2019 19:08:28 +0200 Subject: [PATCH] Fix bottomButton with new renderItem --- DefaultSlide.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/DefaultSlide.js b/DefaultSlide.js index 502105d..11ec813 100644 --- a/DefaultSlide.js +++ b/DefaultSlide.js @@ -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 (