Additional tweaks for permission checks

This commit is contained in:
John Lyon-Smith
2018-04-15 17:50:07 -07:00
parent a4a81cf6ca
commit 6d568efbee
7 changed files with 40 additions and 8 deletions

View File

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