Revert to using image prop and use @2x @3x images
This commit is contained in:
@@ -69,6 +69,7 @@ class WorkItemSceneAR extends React.Component {
|
||||
<Viro3DObject
|
||||
position={[0, 0, 0]}
|
||||
source={shapes["hardhat"].shape}
|
||||
resources={shapes["hardhat"].materials}
|
||||
type="OBJ"
|
||||
/>
|
||||
<ViroSurface
|
||||
|
||||
@@ -14,6 +14,7 @@ import { api } from "../API"
|
||||
import autobind from "autobind-decorator"
|
||||
import { ifIphoneX } from "react-native-iphone-x-helper"
|
||||
import { workItemTypeText, pad } from "../util"
|
||||
import pinImage from "./images/pin.png"
|
||||
|
||||
const styles = StyleSheet.create({
|
||||
container: {
|
||||
@@ -137,9 +138,9 @@ export class Home extends React.Component {
|
||||
}
|
||||
description={workItem.address}
|
||||
anchor={{ x: 0.5, y: 1.0 }}
|
||||
onPress={(e) => this.handleMarkerPress(e, index)}>
|
||||
<Icon name="pin" size={24} />
|
||||
</Marker>
|
||||
image={pinImage}
|
||||
onPress={(e) => this.handleMarkerPress(e, index)}
|
||||
/>
|
||||
))}
|
||||
</MapView>
|
||||
<View
|
||||
|
||||
BIN
mobile/src/Home/images/pin.png
Normal file
BIN
mobile/src/Home/images/pin.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 1.4 KiB |
BIN
mobile/src/Home/images/pin@2x.png
Normal file
BIN
mobile/src/Home/images/pin@2x.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 2.8 KiB |
BIN
mobile/src/Home/images/pin@3x.png
Normal file
BIN
mobile/src/Home/images/pin@3x.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 4.6 KiB |
Reference in New Issue
Block a user