Remove autobind decorator. Fix bugs in AR view
This commit is contained in:
@@ -17,7 +17,7 @@ import { api } from "../API"
|
||||
import { BoundSwitch, BoundInput, BoundButton } from "../ui"
|
||||
import KeyboardSpacer from "react-native-keyboard-spacer"
|
||||
import { versionInfo } from "../version"
|
||||
import autobind from "autobind-decorator"
|
||||
import { reactAutoBind } from "auto-bind2"
|
||||
import { isIphoneX } from "react-native-iphone-x-helper"
|
||||
import { config } from "../config"
|
||||
|
||||
@@ -74,6 +74,7 @@ export class Login extends React.Component {
|
||||
|
||||
constructor(props) {
|
||||
super(props)
|
||||
reactAutoBind(this)
|
||||
this.state = {
|
||||
binder: new FormBinder(
|
||||
{ email: config.defaultUser, rememberMe: true },
|
||||
@@ -92,7 +93,6 @@ export class Login extends React.Component {
|
||||
}
|
||||
}
|
||||
|
||||
@autobind
|
||||
handleLogin() {
|
||||
let obj = this.state.binder.getModifiedBindingValues()
|
||||
let { history } = this.props
|
||||
@@ -117,18 +117,15 @@ export class Login extends React.Component {
|
||||
}
|
||||
}
|
||||
|
||||
@autobind
|
||||
handleMessageDismiss() {
|
||||
this.setState({ messageModal: null })
|
||||
}
|
||||
|
||||
@autobind
|
||||
handleApiDismiss(backendName) {
|
||||
this.setState({ apiModal: null })
|
||||
api.backend = backendName
|
||||
}
|
||||
|
||||
@autobind
|
||||
handleApiPress() {
|
||||
this.hiddenTouchCount += 1
|
||||
|
||||
|
||||
Reference in New Issue
Block a user