File tree Expand file tree Collapse file tree 1 file changed +1
-12
lines changed Expand file tree Collapse file tree 1 file changed +1
-12
lines changed Original file line number Diff line number Diff line change @@ -182,23 +182,12 @@ class ImageHeaderScrollView extends Component<Props, State> {
182
182
renderTouchableFixedForeground ( ) {
183
183
const height = this . interpolateOnImageHeight ( [ this . props . maxHeight , this . props . minHeight ] ) ;
184
184
185
- const headerScale = this . state . scrollY . interpolate ( {
186
- inputRange : [ - this . props . maxHeight , 0 ] ,
187
- outputRange : [ 3 , 1 ] ,
188
- extrapolate : 'clamp' ,
189
- } ) ;
190
-
191
- const headerTransformStyle = {
192
- height,
193
- transform : [ { scale : headerScale } ] ,
194
- } ;
195
-
196
185
if ( ! this . props . renderTouchableFixedForeground ) {
197
186
return < View /> ;
198
187
}
199
188
200
189
return (
201
- < Animated . View style = { [ styles . header , styles . touchableFixedForeground , headerTransformStyle ] } >
190
+ < Animated . View style = { [ styles . header , styles . touchableFixedForeground , { height } ] } >
202
191
{ this . props . renderTouchableFixedForeground ( ) }
203
192
</ Animated . View >
204
193
) ;
You can’t perform that action at this time.
0 commit comments