Skip to content

Commit

Permalink
Rework local images
Browse files Browse the repository at this point in the history
  • Loading branch information
gmarty committed Nov 24, 2016
1 parent fbbf65a commit ac69790
Show file tree
Hide file tree
Showing 10 changed files with 3 additions and 29 deletions.
Binary file removed android/app/src/main/res/drawable-hdpi/ic_place.png
Binary file not shown.
Binary file removed android/app/src/main/res/drawable-mdpi/ic_place.png
Binary file not shown.
Binary file removed android/app/src/main/res/drawable-xxhdpi/ic_place.png
Binary file not shown.
Binary file removed android/app/src/main/res/drawable-xxxhdpi/ic_place.png
Binary file not shown.
23 changes: 0 additions & 23 deletions ios/Magnet/Images.xcassets/ic_place.imageset/Contents.json

This file was deleted.

Binary file not shown.
Binary file not shown.
Binary file not shown.
File renamed without changes
9 changes: 3 additions & 6 deletions lib/views/item/item-detail.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import { bindActionCreators } from 'redux';
import { connect } from 'react-redux';
import React, { Component, PropTypes } from 'react';
import Mapbox, { MapView } from 'react-native-mapbox-gl';
import resolveAssetSource from 'resolveAssetSource';
import { computeDistance } from '../../utils/distance';
import { settings, theme } from '../../../config';
import tinycolor from 'tinycolor2';
Expand Down Expand Up @@ -195,9 +196,7 @@ class ItemDetail extends Component {
<View style={styles.distance}>
<Image
style={styles.distanceImage}
source={{
uri: 'ic_place',
}}/>
source={require('../../images/item-scene-room.png')}/>
<Text style={styles.distanceLabel}>{label}</Text>
</View>
);
Expand Down Expand Up @@ -229,9 +228,7 @@ class ItemDetail extends Component {
type: 'point',
id: 'marker1',
annotationImage: {
source: {
uri: 'ic_place',
},
source: resolveAssetSource(require('../../images/item-scene-room.png')),
height: 24,
width: 24,
},
Expand Down

0 comments on commit ac69790

Please sign in to comment.