Fix bugs and issues before first production build

This commit is contained in:
John Lyon-Smith
2018-04-09 08:37:07 -07:00
parent ee836def93
commit 094c9ba25c
5 changed files with 56 additions and 34 deletions

View File

@@ -12,7 +12,6 @@ import MapView, { Marker } from "react-native-maps"
import { Icon, Header } from "../ui"
import { api } from "../API"
import autobind from "autobind-decorator"
import pinImage from "./images/pin.png"
import { ifIphoneX } from "react-native-iphone-x-helper"
import { workItemTypeText, pad } from "../util"
@@ -107,6 +106,7 @@ export class Home extends React.Component {
title="Work Item Map"
leftButton={{ icon: "logout", onPress: this.handleLogoutPress }}
rightButton={{ icon: "glasses", onPress: this.handleGlassesPress }}
disabled
/>
<MapView
ref={(ref) => {
@@ -137,7 +137,7 @@ export class Home extends React.Component {
workItemTypeText[workItem.workItemType]
}
description={workItem.address}
image={pinImage}
image={require("./images/pin.png")}
anchor={{ x: 0.5, y: 1.0 }}
onPress={(e) => this.handleMarkerPress(e, index)}
/>