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
|
<Viro3DObject
|
||||||
position={[0, 0, 0]}
|
position={[0, 0, 0]}
|
||||||
source={shapes["hardhat"].shape}
|
source={shapes["hardhat"].shape}
|
||||||
|
resources={shapes["hardhat"].materials}
|
||||||
type="OBJ"
|
type="OBJ"
|
||||||
/>
|
/>
|
||||||
<ViroSurface
|
<ViroSurface
|
||||||
|
|||||||
@@ -14,6 +14,7 @@ import { api } from "../API"
|
|||||||
import autobind from "autobind-decorator"
|
import autobind from "autobind-decorator"
|
||||||
import { ifIphoneX } from "react-native-iphone-x-helper"
|
import { ifIphoneX } from "react-native-iphone-x-helper"
|
||||||
import { workItemTypeText, pad } from "../util"
|
import { workItemTypeText, pad } from "../util"
|
||||||
|
import pinImage from "./images/pin.png"
|
||||||
|
|
||||||
const styles = StyleSheet.create({
|
const styles = StyleSheet.create({
|
||||||
container: {
|
container: {
|
||||||
@@ -137,9 +138,9 @@ export class Home extends React.Component {
|
|||||||
}
|
}
|
||||||
description={workItem.address}
|
description={workItem.address}
|
||||||
anchor={{ x: 0.5, y: 1.0 }}
|
anchor={{ x: 0.5, y: 1.0 }}
|
||||||
onPress={(e) => this.handleMarkerPress(e, index)}>
|
image={pinImage}
|
||||||
<Icon name="pin" size={24} />
|
onPress={(e) => this.handleMarkerPress(e, index)}
|
||||||
</Marker>
|
/>
|
||||||
))}
|
))}
|
||||||
</MapView>
|
</MapView>
|
||||||
<View
|
<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