File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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 } ) => {
You can’t perform that action at this time.
0 commit comments