Additional tweaks for permission checks
This commit is contained in:
@@ -137,6 +137,11 @@ class WorkItemSceneAR extends React.Component {
|
||||
})
|
||||
}
|
||||
|
||||
@autobind
|
||||
handleClick(position, source) {
|
||||
// this.props.history.replace("/activity")
|
||||
}
|
||||
|
||||
render() {
|
||||
const { position, scale, rotation, shouldBillboard } = this.state
|
||||
|
||||
@@ -166,6 +171,7 @@ class WorkItemSceneAR extends React.Component {
|
||||
resources={shapes["hardhat"].materials}
|
||||
type="OBJ"
|
||||
onLoadEnd={this.handleLoadEnd}
|
||||
onClick={this.handleClick}
|
||||
/>
|
||||
<ViroSurface
|
||||
rotation={[-90, 0, 0]}
|
||||
@@ -187,7 +193,7 @@ export class ARViewer extends React.Component {
|
||||
}
|
||||
|
||||
@autobind
|
||||
_handlePress() {
|
||||
handleBackPress() {
|
||||
this.props.history.replace("/")
|
||||
}
|
||||
|
||||
@@ -203,7 +209,7 @@ export class ARViewer extends React.Component {
|
||||
<View style={{ position: "absolute", left: 30, right: 0, top: 50 }}>
|
||||
<TouchableHighlight
|
||||
style={styles.buttons}
|
||||
onPress={this._handlePress}
|
||||
onPress={this.handleBackPress}
|
||||
underlayColor={"#00000000"}>
|
||||
<Image source={backImage} />
|
||||
</TouchableHighlight>
|
||||
|
||||
Reference in New Issue
Block a user