@@ -110,7 +110,7 @@ class RNParallax extends Component {
110
110
}
111
111
112
112
getInputRange ( ) {
113
- return [ - this . getExtraScrollHeight ( ) , 0 , this . getHeaderScrollDistance ( ) ] ;
113
+ return [ - this . getExtraScrollHeight ( ) , 0 , this . getHeaderScrollDistance ( ) ] ;
114
114
}
115
115
116
116
getHeaderHeight ( ) {
@@ -149,7 +149,7 @@ class RNParallax extends Component {
149
149
return this . state . scrollY . interpolate ( {
150
150
inputRange : this . getInputRange ( ) ,
151
151
outputRange : [ this . getBackgroundImageScale ( ) , 1 , 1 ] ,
152
- extrapolate : 'clamp'
152
+ extrapolate : 'clamp' ,
153
153
} ) ;
154
154
}
155
155
@@ -186,14 +186,14 @@ class RNParallax extends Component {
186
186
187
187
renderHeaderForeground ( ) {
188
188
const { renderNavBar } = this . props ;
189
-
189
+
190
190
return (
191
191
< Animated . View
192
192
style = { [
193
193
styles . bar ,
194
194
{
195
195
height : this . getHeaderMinHeight ( ) ,
196
- }
196
+ } ,
197
197
] }
198
198
>
199
199
{ renderNavBar ( ) }
@@ -224,11 +224,11 @@ class RNParallax extends Component {
224
224
225
225
renderPlainBackground ( ) {
226
226
const { backgroundColor } = this . props ;
227
-
227
+
228
228
const imageOpacity = this . getImageOpacity ( ) ;
229
229
const imageTranslate = this . getImageTranslate ( ) ;
230
230
const imageScale = this . getImageScale ( ) ;
231
-
231
+
232
232
return (
233
233
< Animated . View
234
234
style = { {
@@ -244,7 +244,7 @@ class RNParallax extends Component {
244
244
renderNavbarBackground ( ) {
245
245
const { navbarColor } = this . props ;
246
246
const navBarOpacity = this . getNavBarOpacity ( ) ;
247
-
247
+
248
248
return (
249
249
< Animated . View
250
250
style = { [
@@ -260,7 +260,7 @@ class RNParallax extends Component {
260
260
}
261
261
262
262
renderHeaderBackground ( ) {
263
- const { backgroundImage, backgroundColor } = this . props ;
263
+ const { backgroundImage, backgroundColor } = this . props ;
264
264
const imageOpacity = this . getImageOpacity ( ) ;
265
265
266
266
return (
@@ -282,14 +282,12 @@ class RNParallax extends Component {
282
282
283
283
renderScrollView ( ) {
284
284
const { renderContent, scrollEventThrottle } = this . props ;
285
-
285
+
286
286
return (
287
287
< Animated . ScrollView
288
288
style = { styles . scrollView }
289
289
scrollEventThrottle = { scrollEventThrottle }
290
- onScroll = { Animated . event (
291
- [ { nativeEvent : { contentOffset : { y : this . state . scrollY } } } ] ,
292
- ) }
290
+ onScroll = { Animated . event ( [ { nativeEvent : { contentOffset : { y : this . state . scrollY } } } ] ) }
293
291
>
294
292
< View style = { { marginTop : this . getHeaderMaxHeight ( ) } } >
295
293
{ renderContent ( ) }
@@ -305,7 +303,7 @@ class RNParallax extends Component {
305
303
{ this . renderNavbarBackground ( ) }
306
304
{ this . renderHeaderBackground ( ) }
307
305
{ this . renderHeaderTitle ( ) }
308
- { this . renderHeaderForeground ( ) }
306
+ { this . renderHeaderForeground ( ) }
309
307
</ View >
310
308
) ;
311
309
}
0 commit comments