Skip to content

Commit 3415486

Browse files
machourdyesseyumba
authored andcommitted
fix: Remove undefined var & fix typo (gitpoint#517)
1 parent 1153feb commit 3415486

1 file changed

Lines changed: 3 additions & 5 deletions

File tree

src/components/parallax-scroll.component.js

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -34,13 +34,11 @@ const styles = StyleSheet.create({
3434
background: {
3535
position: 'absolute',
3636
top: 0,
37-
width: window.width,
3837
backgroundColor: colors.primaryDark,
3938
},
4039
stickySection: {
4140
height: STICKY_HEADER_HEIGHT,
4241
backgroundColor: colors.primaryDark,
43-
width: window.width,
4442
alignItems: 'center',
4543
justifyContent: 'flex-end',
4644
},
@@ -78,13 +76,13 @@ export class ParallaxScroll extends Component {
7876
}
7977

8078
getParallaxHeaderHeight = (window = Dimensions.get('window')) => {
81-
let devider = 2;
79+
let divider = 2;
8280

8381
if (window.width > window.height) {
84-
devider = Platform.OS === 'ios' ? 1.2 : 1.4;
82+
divider = Platform.OS === 'ios' ? 1.2 : 1.4;
8583
}
8684

87-
return window.height / devider;
85+
return window.height / divider;
8886
};
8987

9088
dimensionsDidChange = ({ window }) => {

0 commit comments

Comments
 (0)