Remove autobind decorator. Fix bugs in AR view
This commit is contained in:
@@ -3,7 +3,7 @@ import Modal from "react-native-modal"
|
||||
import PropTypes from "prop-types"
|
||||
import { View, Text, TouchableOpacity } from "react-native"
|
||||
import { Icon, OptionStrip } from "../ui"
|
||||
import autobind from "autobind-decorator"
|
||||
import { reactAutoBind } from "auto-bind2"
|
||||
import { api } from "../API"
|
||||
|
||||
export class ApiModal extends Component {
|
||||
@@ -14,12 +14,12 @@ export class ApiModal extends Component {
|
||||
|
||||
constructor(props) {
|
||||
super(props)
|
||||
reactAutoBind(this)
|
||||
this.state = {
|
||||
value: api.backend,
|
||||
}
|
||||
}
|
||||
|
||||
@autobind
|
||||
handleButtonPress() {
|
||||
const { onDismiss } = this.props
|
||||
|
||||
@@ -28,7 +28,6 @@ export class ApiModal extends Component {
|
||||
}
|
||||
}
|
||||
|
||||
@autobind
|
||||
handleValueChanged(newValue) {
|
||||
this.setState({ value: newValue })
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user