From 82e7ef40d056043021019056620b1625d2404b33 Mon Sep 17 00:00:00 2001 From: Thomasdelecluse <81568452+Thomasdelecluse@users.noreply.github.com> Date: Tue, 10 Sep 2024 14:06:02 +0200 Subject: [PATCH] feat: add map with point of user --- apps/expo/src/pages/MapScreen.js | 10 ++-- pnpm-lock.yaml | 82 ++++---------------------------- 2 files changed, 11 insertions(+), 81 deletions(-) diff --git a/apps/expo/src/pages/MapScreen.js b/apps/expo/src/pages/MapScreen.js index 0d31a76..dc1382c 100644 --- a/apps/expo/src/pages/MapScreen.js +++ b/apps/expo/src/pages/MapScreen.js @@ -1,5 +1,5 @@ import React, { useEffect, useState } from 'react'; -import { View, StyleSheet, ActivityIndicator, Platform } from 'react-native'; +import { View, StyleSheet, ActivityIndicator } from 'react-native'; import MapView, { Marker } from 'react-native-maps'; import * as Location from 'expo-location'; @@ -56,11 +56,7 @@ const MapScreen = () => { {userLocation && ( @@ -68,7 +64,7 @@ const MapScreen = () => { coordinate={userLocation} title="Votre position actuelle" description="Vous ĂȘtes ici" - pinColor="blue" // Couleur du marqueur + pinColor="blue" /> )} diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 1083191..e83ffff 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -125,17 +125,17 @@ importers: specifier: 1.7.1 version: 1.7.1(@babel/runtime@7.25.0)(react-native@0.74.5(@babel/core@7.25.2)(@babel/preset-env@7.25.3(@babel/core@7.25.2))(@types/react@18.3.3)(bufferutil@4.0.8)(react@18.3.1))(react@18.3.1) '@tanstack/react-query': - specifier: ^4.0.0 - version: 4.36.1(react-dom@18.3.1(react@18.3.1))(react-native@0.74.5(@babel/core@7.25.2)(@babel/preset-env@7.25.3(@babel/core@7.25.2))(@types/react@18.3.3)(bufferutil@4.0.8)(react@18.3.1))(react@18.3.1) + specifier: 'catalog:' + version: 5.51.23(react@18.3.1) '@trpc/client': - specifier: ^10.0.0 - version: 10.45.2(@trpc/server@10.45.2) + specifier: 'catalog:' + version: 11.0.0-rc.477(@trpc/server@11.0.0-rc.477) '@trpc/react-query': - specifier: ^10.0.0 - version: 10.45.2(@tanstack/react-query@4.36.1(react-dom@18.3.1(react@18.3.1))(react-native@0.74.5(@babel/core@7.25.2)(@babel/preset-env@7.25.3(@babel/core@7.25.2))(@types/react@18.3.3)(bufferutil@4.0.8)(react@18.3.1))(react@18.3.1))(@trpc/client@10.45.2(@trpc/server@10.45.2))(@trpc/server@10.45.2)(react-dom@18.3.1(react@18.3.1))(react@18.3.1) + specifier: 'catalog:' + version: 11.0.0-rc.477(@tanstack/react-query@5.51.23(react@18.3.1))(@trpc/client@11.0.0-rc.477(@trpc/server@11.0.0-rc.477))(@trpc/server@11.0.0-rc.477)(react-dom@18.3.1(react@18.3.1))(react@18.3.1) '@trpc/server': - specifier: ^10.0.0 - version: 10.45.2 + specifier: 'catalog:' + version: 11.0.0-rc.477 expo: specifier: ~51.0.27 version: 51.0.27(@babel/core@7.25.2)(@babel/preset-env@7.25.3(@babel/core@7.25.2))(bufferutil@4.0.8) @@ -3011,24 +3011,9 @@ packages: typescript: optional: true - '@tanstack/query-core@4.36.1': - resolution: {integrity: sha512-DJSilV5+ytBP1FbFcEJovv4rnnm/CokuVvrBEtW/Va9DvuJ3HksbXUJEpI0aV1KtuL4ZoO9AVE6PyNLzF7tLeA==} - '@tanstack/query-core@5.51.21': resolution: {integrity: sha512-POQxm42IUp6n89kKWF4IZi18v3fxQWFRolvBA6phNVmA8psdfB1MvDnGacCJdS+EOX12w/CyHM62z//rHmYmvw==} - '@tanstack/react-query@4.36.1': - resolution: {integrity: sha512-y7ySVHFyyQblPl3J3eQBWpXZkliroki3ARnBKsdJchlgt7yJLRDUcf4B8soufgiYt3pEQIkBWBx1N9/ZPIeUWw==} - peerDependencies: - react: ^16.8.0 || ^17.0.0 || ^18.0.0 - react-dom: ^16.8.0 || ^17.0.0 || ^18.0.0 - react-native: '*' - peerDependenciesMeta: - react-dom: - optional: true - react-native: - optional: true - '@tanstack/react-query@5.51.23': resolution: {integrity: sha512-CfJCfX45nnVIZjQBRYYtvVMIsGgWLKLYC4xcUiYEey671n1alvTZoCBaU9B85O8mF/tx9LPyrI04A6Bs2THv4A==} peerDependencies: @@ -3037,25 +3022,11 @@ packages: '@tootallnate/quickjs-emscripten@0.23.0': resolution: {integrity: sha512-C5Mc6rdnsaJDjO3UpGW/CQTHtCKaYlScZTly4JIu97Jxo/odCiH0ITnDXSJPTOrEKk/ycSZ0AOgTmkDtkOsvIA==} - '@trpc/client@10.45.2': - resolution: {integrity: sha512-ykALM5kYWTLn1zYuUOZ2cPWlVfrXhc18HzBDyRhoPYN0jey4iQHEFSEowfnhg1RvYnrAVjNBgHNeSAXjrDbGwg==} - peerDependencies: - '@trpc/server': 10.45.2 - '@trpc/client@11.0.0-rc.477': resolution: {integrity: sha512-Ah/Er3vxTm2bIEUcIrike7Z/8Yc+DkFveU2ZHQQ0+zY7yxs931438+4OEJuY/Xl/0p5OTDeZTm6HBuZ1REFiyA==} peerDependencies: '@trpc/server': 11.0.0-rc.477+a467f8314 - '@trpc/react-query@10.45.2': - resolution: {integrity: sha512-BAqb9bGZIscroradlNx+Cc9522R+idY3BOSf5z0jHUtkxdMbjeGKxSSMxxu7JzoLqSIEC+LVzL3VvF8sdDWaZQ==} - peerDependencies: - '@tanstack/react-query': ^4.18.0 - '@trpc/client': 10.45.2 - '@trpc/server': 10.45.2 - react: '>=16.8.0' - react-dom: '>=16.8.0' - '@trpc/react-query@11.0.0-rc.477': resolution: {integrity: sha512-1ZCAm0wv7yLmb3muq+5DTRxdKXzI1KjTrcM2+QRKCFu6EherGM8x6zGI36P9ZmC6o+SCoedzxqazDNe+kkqVqA==} peerDependencies: @@ -3065,9 +3036,6 @@ packages: react: '>=18.2.0' react-dom: '>=18.2.0' - '@trpc/server@10.45.2': - resolution: {integrity: sha512-wOrSThNNE4HUnuhJG6PfDRp4L2009KDVxsd+2VYH8ro6o/7/jwYZ8Uu5j+VaW+mOmc8EHerHzGcdbGNQSAUPgg==} - '@trpc/server@11.0.0-rc.477': resolution: {integrity: sha512-K6zmjRv96fWilqm/ETehEK1DWsy5bSyrs2xbsNzCbjguMgamMhOClRHgYzJcwgLp2kasJ7QgD9YbahOhV1/u1w==} @@ -8020,11 +7988,6 @@ packages: '@types/react': optional: true - use-sync-external-store@1.2.2: - resolution: {integrity: sha512-PElTlVMwpblvbNqQ82d2n6RjStvdSoNe9FG28kNfz3WiXilJm4DdNkEzRhCZuIDwY8U08WVihhGR5iRqAwfDiw==} - peerDependencies: - react: ^16.8.0 || ^17.0.0 || ^18.0.0 - utf-8-validate@6.0.4: resolution: {integrity: sha512-xu9GQDeFp+eZ6LnCywXN/zBancWvOpUMzgjLPSjy4BRHSmTelvn2E0DG0o1sTiw5hkCKBHo8rwSKncfRfv2EEQ==} engines: {node: '>=6.14.2'} @@ -11044,19 +11007,8 @@ snapshots: optionalDependencies: typescript: 5.5.4 - '@tanstack/query-core@4.36.1': {} - '@tanstack/query-core@5.51.21': {} - '@tanstack/react-query@4.36.1(react-dom@18.3.1(react@18.3.1))(react-native@0.74.5(@babel/core@7.25.2)(@babel/preset-env@7.25.3(@babel/core@7.25.2))(@types/react@18.3.3)(bufferutil@4.0.8)(react@18.3.1))(react@18.3.1)': - dependencies: - '@tanstack/query-core': 4.36.1 - react: 18.3.1 - use-sync-external-store: 1.2.2(react@18.3.1) - optionalDependencies: - react-dom: 18.3.1(react@18.3.1) - react-native: 0.74.5(@babel/core@7.25.2)(@babel/preset-env@7.25.3(@babel/core@7.25.2))(@types/react@18.3.3)(bufferutil@4.0.8)(react@18.3.1) - '@tanstack/react-query@5.51.23(react@18.3.1)': dependencies: '@tanstack/query-core': 5.51.21 @@ -11064,22 +11016,10 @@ snapshots: '@tootallnate/quickjs-emscripten@0.23.0': {} - '@trpc/client@10.45.2(@trpc/server@10.45.2)': - dependencies: - '@trpc/server': 10.45.2 - '@trpc/client@11.0.0-rc.477(@trpc/server@11.0.0-rc.477)': dependencies: '@trpc/server': 11.0.0-rc.477 - '@trpc/react-query@10.45.2(@tanstack/react-query@4.36.1(react-dom@18.3.1(react@18.3.1))(react-native@0.74.5(@babel/core@7.25.2)(@babel/preset-env@7.25.3(@babel/core@7.25.2))(@types/react@18.3.3)(bufferutil@4.0.8)(react@18.3.1))(react@18.3.1))(@trpc/client@10.45.2(@trpc/server@10.45.2))(@trpc/server@10.45.2)(react-dom@18.3.1(react@18.3.1))(react@18.3.1)': - dependencies: - '@tanstack/react-query': 4.36.1(react-dom@18.3.1(react@18.3.1))(react-native@0.74.5(@babel/core@7.25.2)(@babel/preset-env@7.25.3(@babel/core@7.25.2))(@types/react@18.3.3)(bufferutil@4.0.8)(react@18.3.1))(react@18.3.1) - '@trpc/client': 10.45.2(@trpc/server@10.45.2) - '@trpc/server': 10.45.2 - react: 18.3.1 - react-dom: 18.3.1(react@18.3.1) - '@trpc/react-query@11.0.0-rc.477(@tanstack/react-query@5.51.23(react@18.3.1))(@trpc/client@11.0.0-rc.477(@trpc/server@11.0.0-rc.477))(@trpc/server@11.0.0-rc.477)(react-dom@18.3.1(react@18.3.1))(react@18.3.1)': dependencies: '@tanstack/react-query': 5.51.23(react@18.3.1) @@ -11088,8 +11028,6 @@ snapshots: react: 18.3.1 react-dom: 18.3.1(react@18.3.1) - '@trpc/server@10.45.2': {} - '@trpc/server@11.0.0-rc.477': {} '@tsconfig/node10@1.0.11': {} @@ -16770,10 +16708,6 @@ snapshots: optionalDependencies: '@types/react': 18.3.3 - use-sync-external-store@1.2.2(react@18.3.1): - dependencies: - react: 18.3.1 - utf-8-validate@6.0.4: dependencies: node-gyp-build: 4.8.1