Commit a87c0f0e authored by Thomas's avatar Thomas
Browse files

no message

parent be3cc4fc
[{"coordinates": {"latitude": -10.3333333, "longitude": -53.2}, "title": "Brazil: 711"}, {"coordinates": {"latitude": 35.000074, "longitude": 104.999927}, "title": "China: 216"}, {"coordinates": {"latitude": 24.4768783, "longitude": 90.2932426}, "title": "Bangladesh: 145"}, {"coordinates": {"latitude": 38.9597594, "longitude": 34.9249653}, "title": "Turkey: 136"}, {"coordinates": {"latitude": 22.5000485, "longitude": -100.0000375}, "title": "Mexico: 101"}, {"coordinates": {"latitude": 22.3511148, "longitude": 78.6677428}, "title": "India: 70"}, {"coordinates": {"latitude": 17.1750495, "longitude": 95.9999652}, "title": "Myanmar (Burma): 39"}, {"coordinates": {"latitude": 13.2904027, "longitude": 108.4265113}, "title": "Vietnam: 36"}, {"coordinates": {"latitude": 13.5066394, "longitude": 104.869423}, "title": "Cambodia: 35"}, {"coordinates": {"latitude": 30.3308401, "longitude": 71.247499}, "title": "Pakistan: 34"}, {"coordinates": {"latitude": 7.5554942, "longitude": 80.7137847}, "title": "Sri Lanka: 21"}, {"coordinates": {"latitude": 42.6384261, "longitude": 12.674297}, "title": "Italy: 17"}, {"coordinates": {"latitude": 45.9852129, "longitude": 24.6859225}, "title": "Romania: 11"}, {"coordinates": {"latitude": 40.0332629, "longitude": -7.8896263}, "title": "Portugal: 11"}, {"coordinates": {"latitude": 2.8894434, "longitude": -73.783892}, "title": "Colombia: 10"}, {"coordinates": {"latitude": -2.4833826, "longitude": 117.8902853}, "title": "Indonesia: 10"}, {"coordinates": {"latitude": 14.8971921, "longitude": 100.83273}, "title": "Thailand: 6"}, {"coordinates": {"latitude": 51.0834196, "longitude": 10.4234469}, "title": "Germany: 5"}, {"coordinates": {"latitude": 44.1534121, "longitude": 20.55144}, "title": "Serbia: 4"}, {"coordinates": {"latitude": 26.2540493, "longitude": 29.2675469}, "title": "Egypt: 4"}, {"coordinates": {"latitude": 31.1728205, "longitude": -7.3362482}, "title": "Morocco: 4"}, {"coordinates": {"latitude": 41.6171214, "longitude": 21.7168387}, "title": "Macedonia (FYROM): 3"}, {"coordinates": {"latitude": 52.215933, "longitude": 19.134422}, "title": "Poland: 3"}, {"coordinates": {"latitude": 42.6073975, "longitude": 25.4856617}, "title": "Bulgaria: 3"}, {"coordinates": {"latitude": 52.5001698, "longitude": 5.7480821}, "title": "Netherlands: 2"}, {"coordinates": {"latitude": 46.603354, "longitude": 1.8883335}, "title": "France: 2"}, {"coordinates": {"latitude": 33.8439408, "longitude": 9.400138}, "title": "Tunisia: 2"}, {"coordinates": {"latitude": 38.9953683, "longitude": 21.9877132}, "title": "Greece: 2"}, {"coordinates": {"latitude": 23.9739374, "longitude": 120.9820179}, "title": "Taiwan: 1"}, {"coordinates": {"latitude": -23.3165935, "longitude": -58.1693445}, "title": "Paraguay: 1"}, {"coordinates": {"latitude": 45.5643442, "longitude": 17.0118954}, "title": "Croatia: 1"}, {"coordinates": {"latitude": 44.3053476, "longitude": 17.5961467}, "title": "Bosnia and Herzegovina: 1"}, {"coordinates": {"latitude": 47.1817585, "longitude": 19.5060937}, "title": "Hungary: 1"}, {"coordinates": {"latitude": -18.9249604, "longitude": 46.4416422}, "title": "Madagascar: 1"}, {"coordinates": {"latitude": -6.8699697, "longitude": -75.0458515}, "title": "Peru: 1"}]
\ No newline at end of file
[{"coordinates": {"latitude": 13.2904027, "longitude": 108.4265113}, "title": "Viet Nam: 122"}, {"coordinates": {"latitude": 60.1672949, "longitude": 24.9365563}, "title": "China Mainland: 119"}, {"coordinates": {"latitude": -2.4833826, "longitude": 117.8902853}, "title": "INDONESIA: 39"}, {"coordinates": {"latitude": 39.7837304, "longitude": -100.4458825}, "title": "United States of America: 35"}, {"coordinates": {"latitude": 14.8971921, "longitude": 100.83273}, "title": "THAILAND: 32"}, {"coordinates": {"latitude": 23.9739374, "longitude": 120.9820179}, "title": "Taiwan: 25"}, {"coordinates": {"latitude": 42.6384261, "longitude": 12.674297}, "title": "ITALY: 23"}, {"coordinates": {"latitude": 7.5554942, "longitude": 80.7137847}, "title": "SRI LANKA: 17"}, {"coordinates": {"latitude": -10.3333333, "longitude": -53.2}, "title": "BRAZIL: 14"}, {"coordinates": {"latitude": 13.5066394, "longitude": 104.869423}, "title": "CAMBODIA: 13"}, {"coordinates": {"latitude": 36.638392, "longitude": 127.6961188}, "title": "Korea (Republic of): 13"}, {"coordinates": {"latitude": 36.5748441, "longitude": 139.2394179}, "title": "JAPAN: 9"}, {"coordinates": {"latitude": 22.5000485, "longitude": -100.0000375}, "title": "MEXICO: 8"}, {"coordinates": {"latitude": -34.9964963, "longitude": -64.9672817}, "title": "ARGENTINA: 8"}, {"coordinates": {"latitude": 15.2572432, "longitude": -86.0755145}, "title": "HONDURAS: 7"}, {"coordinates": {"latitude": 4.5693754, "longitude": 102.2656823}, "title": "MALAYSIA: 7"}, {"coordinates": {"latitude": 30.3308401, "longitude": 71.247499}, "title": "Pakistan: 6"}, {"coordinates": {"latitude": 26.2540493, "longitude": 29.2675469}, "title": "EGYPT: 5"}, {"coordinates": {"latitude": 38.9597594, "longitude": 34.9249653}, "title": "TURKEY: 5"}, {"coordinates": {"latitude": 46.6745434, "longitude": 29.7521996}, "title": "Moldova (Republic of): 4"}, {"coordinates": {"latitude": 22.3511148, "longitude": 78.6677428}, "title": "INDIA: 4"}, {"coordinates": {"latitude": 31.1667049, "longitude": 36.941628}, "title": "JORDAN: 3"}, {"coordinates": {"latitude": 13.8000382, "longitude": -88.9140683}, "title": "EL SALVADOR: 3"}, {"coordinates": {"latitude": 32.3293809, "longitude": -83.1137366}, "title": "GEORGIA: 3"}, {"coordinates": {"latitude": 52.5001698, "longitude": 5.7480821}, "title": "NETHERLANDS: 2"}, {"coordinates": {"latitude": 15.6356088, "longitude": -89.8988087}, "title": "GUATEMALA: 2"}, {"coordinates": {"latitude": 61.0666922, "longitude": -107.991707}, "title": "CANADA: 2"}, {"coordinates": {"latitude": 12.6090157, "longitude": -85.2936911}, "title": "NICARAGUA: 2"}, {"coordinates": {"latitude": 44.3053476, "longitude": 17.5961467}, "title": "Bosnia and Herzegovina: 1"}, {"coordinates": {"latitude": 51.0834196, "longitude": 10.4234469}, "title": "GERMANY: 1"}, {"coordinates": {"latitude": 31.5313113, "longitude": 34.8667654}, "title": "ISRAEL: 1"}, {"coordinates": {"latitude": -1.3397668, "longitude": -79.3666965}, "title": "ECUADOR: 1"}, {"coordinates": {"latitude": 54.7023545, "longitude": -3.2765753}, "title": "United Kingdom of Great Britain and Northern Ireland: 1"}, {"coordinates": {"latitude": 38.9953683, "longitude": 21.9877132}, "title": "GREECE: 1"}, {"coordinates": {"latitude": 52.215933, "longitude": 19.134422}, "title": "POLAND: 1"}, {"coordinates": {"latitude": 39.3260685, "longitude": -4.8379791}, "title": "SPAIN: 1"}, {"coordinates": {"latitude": 55.3500003, "longitude": 23.7499997}, "title": "Lithuania: 1"}, {"coordinates": {"latitude": 42.6073975, "longitude": 25.4856617}, "title": "BULGARIA: 1"}, {"coordinates": {"latitude": 45.5643442, "longitude": 17.0118954}, "title": "CROATIA: 1"}]
\ No newline at end of file
...@@ -108,9 +108,9 @@ export default function BrandScreen({ navigation, route }) { ...@@ -108,9 +108,9 @@ export default function BrandScreen({ navigation, route }) {
} else if (BrandName == "H&M") { } else if (BrandName == "H&M") {
var getMarker = require('../assets/dataHM.json') var getMarker = require('../assets/dataHM.json')
} else if (BrandName == "Nike") { } else if (BrandName == "Nike") {
var getMarker = require('../assets/dataAdidas.json') var getMarker = require('../assets/dataNike.json')
} else if (BrandName == "C&A") { } else if (BrandName == "C&A") {
var getMarker = require('../assets/dataHM.json') var getMarker = require('../assets/dataCA.json')
} }
const markers = getMarker const markers = getMarker
......
...@@ -86,9 +86,12 @@ export default function Favorites() { ...@@ -86,9 +86,12 @@ export default function Favorites() {
const [favoriteItems, setFavoriteItems] = React.useState({}) const [favoriteItems, setFavoriteItems] = React.useState({})
// get favorites
AsyncStorage.getItem('brands', (err, result) => { AsyncStorage.getItem('brands', (err, result) => {
result = JSON.parse(result) if (result !== null) {
setFavoriteItems(result) result = JSON.parse(result)
setFavoriteItems(result)
}
}); });
return ( return (
......
{
"lockfileVersion": 1
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment