From 87e088fa4d3e6542536c37b70cede4cfc0d8afea Mon Sep 17 00:00:00 2001 From: Mehdi Achour Date: Thu, 19 Oct 2017 17:30:39 +0100 Subject: [PATCH] fix: Remove undefined var & fix typo --- src/components/parallax-scroll.component.js | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/src/components/parallax-scroll.component.js b/src/components/parallax-scroll.component.js index 70075a50d..013ff9992 100644 --- a/src/components/parallax-scroll.component.js +++ b/src/components/parallax-scroll.component.js @@ -34,13 +34,11 @@ const styles = StyleSheet.create({ background: { position: 'absolute', top: 0, - width: window.width, backgroundColor: colors.primaryDark, }, stickySection: { height: STICKY_HEADER_HEIGHT, backgroundColor: colors.primaryDark, - width: window.width, alignItems: 'center', justifyContent: 'flex-end', }, @@ -78,13 +76,13 @@ export class ParallaxScroll extends Component { } getParallaxHeaderHeight = (window = Dimensions.get('window')) => { - let devider = 2; + let divider = 2; if (window.width > window.height) { - devider = Platform.OS === 'ios' ? 1.2 : 1.4; + divider = Platform.OS === 'ios' ? 1.2 : 1.4; } - return window.height / devider; + return window.height / divider; }; dimensionsDidChange = ({ window }) => {