Skip to content

Commit cc90c20

Browse files
soyanakagawafacebook-github-bot
authored andcommitted
Remove var in /Libralies/Experimental/IncrementalPresenter.js (facebook#22144)
Summary: Remove `var` declaration keyword in ` /Libralies/Experimental/IncrementalPresenter.js` . - [x] Check `npm run flow` - [x] Check `npm run flow-check-ios` - [x] Check `npm run flow-check-android` - [x] Check `npm run lint` [GENERAL] [ENHANCEMENT] [Libralies/Experimental] - remove `var` Pull Request resolved: facebook#22144 Differential Revision: D12930731 Pulled By: TheSavior fbshipit-source-id: 64d7689ffec1da14479bdd7106fdea9a3dbeaa42
1 parent 6476151 commit cc90c20

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

Libraries/Experimental/IncrementalPresenter.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,14 +68,15 @@ class IncrementalPresenter extends React.Component<Props> {
6868
this.props.onDone && this.props.onDone();
6969
}
7070
render() {
71+
let style: ViewStyleProp;
7172
if (
7273
this.props.disabled !== true &&
7374
this.context.incrementalGroupEnabled !== false &&
7475
!this._isDone
7576
) {
76-
var style = [this.props.style, {opacity: 0, position: 'absolute'}];
77+
style = [this.props.style, {opacity: 0, position: 'absolute'}];
7778
} else {
78-
var style = this.props.style;
79+
style = this.props.style;
7980
}
8081
return (
8182
<IncrementalGroup

0 commit comments

Comments
 (0)