Remove autobind decorator. Fix bugs in AR view

This commit is contained in:
John Lyon-Smith
2018-05-28 16:12:20 -07:00
parent eb3649547a
commit f07c61c3b5
26 changed files with 1512 additions and 1481 deletions

View File

@@ -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