mirror of
https://github.com/zhigang1992/react-native.git
synced 2026-05-28 08:07:25 +08:00
Remove var in RNTester (#22019)
Summary: I removed `var` in RNTester. - [x] npm run prettier - [x] npm run flow-check-ios - [x] npm run flow-check-android [GENERAL] [ENHANCEMENT] [RNTester] - remove `var` Pull Request resolved: https://github.com/facebook/react-native/pull/22019 Differential Revision: D12843071 Pulled By: TheSavior fbshipit-source-id: 3652ea91b3ab92c367332cbe2ff7de0343508dad
This commit is contained in:
committed by
Facebook Github Bot
parent
cdbf719307
commit
a21b8b7360
@@ -39,7 +39,7 @@ class AppStateSubscription extends React.Component<
|
||||
};
|
||||
|
||||
_handleAppStateChange = appState => {
|
||||
var previousAppStates = this.state.previousAppStates.slice();
|
||||
const previousAppStates = this.state.previousAppStates.slice();
|
||||
previousAppStates.push(this.state.appState);
|
||||
this.setState({
|
||||
appState,
|
||||
|
||||
Reference in New Issue
Block a user