Fixing base route issues. Fix map scrolling issues on iOS
This commit is contained in:
@@ -105,8 +105,6 @@ class WorkItemSceneAR extends React.Component {
|
||||
position: hitResultPosition || defaultPosition,
|
||||
})
|
||||
|
||||
console.log(hitResultPosition || defaultPosition)
|
||||
|
||||
setTimeout(() => {
|
||||
this.updateInitialRotation()
|
||||
}, 200)
|
||||
|
||||
@@ -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 & Time:" value={dateTime} />
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user