Skip to content

Commit 4de275b

Browse files
committed
Minor eslint fixes
1 parent 0e66924 commit 4de275b

File tree

1 file changed

+11
-13
lines changed

1 file changed

+11
-13
lines changed

index.js

+11-13
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ class RNParallax extends Component {
110110
}
111111

112112
getInputRange() {
113-
return [-this.getExtraScrollHeight(), 0, this.getHeaderScrollDistance()];
113+
return [-this.getExtraScrollHeight(), 0, this.getHeaderScrollDistance()];
114114
}
115115

116116
getHeaderHeight() {
@@ -149,7 +149,7 @@ class RNParallax extends Component {
149149
return this.state.scrollY.interpolate({
150150
inputRange: this.getInputRange(),
151151
outputRange: [this.getBackgroundImageScale(), 1, 1],
152-
extrapolate: 'clamp'
152+
extrapolate: 'clamp',
153153
});
154154
}
155155

@@ -186,14 +186,14 @@ class RNParallax extends Component {
186186

187187
renderHeaderForeground() {
188188
const { renderNavBar } = this.props;
189-
189+
190190
return (
191191
<Animated.View
192192
style={[
193193
styles.bar,
194194
{
195195
height: this.getHeaderMinHeight(),
196-
}
196+
},
197197
]}
198198
>
199199
{renderNavBar()}
@@ -224,11 +224,11 @@ class RNParallax extends Component {
224224

225225
renderPlainBackground() {
226226
const { backgroundColor } = this.props;
227-
227+
228228
const imageOpacity = this.getImageOpacity();
229229
const imageTranslate = this.getImageTranslate();
230230
const imageScale = this.getImageScale();
231-
231+
232232
return (
233233
<Animated.View
234234
style={{
@@ -244,7 +244,7 @@ class RNParallax extends Component {
244244
renderNavbarBackground() {
245245
const { navbarColor } = this.props;
246246
const navBarOpacity = this.getNavBarOpacity();
247-
247+
248248
return (
249249
<Animated.View
250250
style={[
@@ -260,7 +260,7 @@ class RNParallax extends Component {
260260
}
261261

262262
renderHeaderBackground() {
263-
const { backgroundImage, backgroundColor } = this.props;
263+
const { backgroundImage, backgroundColor } = this.props;
264264
const imageOpacity = this.getImageOpacity();
265265

266266
return (
@@ -282,14 +282,12 @@ class RNParallax extends Component {
282282

283283
renderScrollView() {
284284
const { renderContent, scrollEventThrottle } = this.props;
285-
285+
286286
return (
287287
<Animated.ScrollView
288288
style={styles.scrollView}
289289
scrollEventThrottle={scrollEventThrottle}
290-
onScroll={Animated.event(
291-
[{ nativeEvent: { contentOffset: { y: this.state.scrollY } } }],
292-
)}
290+
onScroll={Animated.event([{ nativeEvent: { contentOffset: { y: this.state.scrollY } } }])}
293291
>
294292
<View style={{ marginTop: this.getHeaderMaxHeight() }}>
295293
{renderContent()}
@@ -305,7 +303,7 @@ class RNParallax extends Component {
305303
{this.renderNavbarBackground()}
306304
{this.renderHeaderBackground()}
307305
{this.renderHeaderTitle()}
308-
{this.renderHeaderForeground()}
306+
{this.renderHeaderForeground()}
309307
</View>
310308
);
311309
}

0 commit comments

Comments
 (0)