Skip to content

Commit

Permalink
fix: Remove undefined var & fix typo (#517)
Browse files Browse the repository at this point in the history
  • Loading branch information
machour authored and Houssein Djirdeh committed Oct 20, 2017
1 parent 16204d5 commit 8405e19
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions src/components/parallax-scroll.component.js
Original file line number Diff line number Diff line change
Expand Up @@ -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',
},
Expand Down Expand Up @@ -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 }) => {
Expand Down

0 comments on commit 8405e19

Please sign in to comment.