Fixing base route issues. Fix map scrolling issues on iOS

This commit is contained in:
John Lyon-Smith
2018-05-31 07:20:29 -07:00
parent 62876c94c9
commit 9e55320a21
8 changed files with 95 additions and 30 deletions

View File

@@ -105,8 +105,6 @@ class WorkItemSceneAR extends React.Component {
position: hitResultPosition || defaultPosition,
})
console.log(hitResultPosition || defaultPosition)
setTimeout(() => {
this.updateInitialRotation()
}, 200)

View File

@@ -294,7 +294,12 @@ export class Activity extends React.Component {
/>
<ScrollView style={styles.container}>
<View style={styles.panel}>
<BoundInput binder={binder} name="resolution" label="Resolution:" />
<BoundInput
binder={binder}
name="resolution"
label="Resolution:"
message="You must supply a resolution for the activity"
/>
</View>
<View style={styles.panel}>
<BoundOptionStrip
@@ -307,10 +312,16 @@ export class Activity extends React.Component {
]}
label="Status:"
name="status"
message="You must supply a status for the activity"
/>
</View>
<View style={styles.panel}>
<BoundInput binder={binder} name="notes" label="Notes:" />
<BoundInput
binder={binder}
name="notes"
label="Notes:"
message="You must supply notes for the activity"
/>
</View>
<View style={styles.panel}>
<FormStaticInput label="Date &amp; Time:" value={dateTime} />

View File

@@ -209,6 +209,11 @@ export class WorkItem extends React.Component {
}
handleRegionChange(region) {
if (!this.isMapReady) {
// On iOS we get this after setting the initial region, before the map declared as ready!
return
}
const { latitude, longitude } = region
this.region = region