From 9d253c4c861bd00b9027d5178bf6ce23c7f7c60e Mon Sep 17 00:00:00 2001 From: Andrii Solianyk Date: Fri, 23 May 2025 21:19:11 +0200 Subject: [PATCH] =?UTF-8?q?Naprawiono=20poprawne=20wy=C5=9Bwietlanie=20zdj?= =?UTF-8?q?=C4=99cia=20od=20razu=20po=20dodaniu.=20NORMALIZACJA=20ZDJECIA?= =?UTF-8?q?=20JEST=20NAJWA=C5=BBNIESZA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- api/locations.jsx | 2 +- app/(tabs)/add.jsx | 2 +- app/location/edit/[id].jsx | 10 ++++++---- locationStore.js | 36 ++++++++++++++++++++---------------- 4 files changed, 28 insertions(+), 22 deletions(-) diff --git a/api/locations.jsx b/api/locations.jsx index a7290c9..24d303e 100644 --- a/api/locations.jsx +++ b/api/locations.jsx @@ -19,7 +19,7 @@ export async function listLocations() { } } -const normalizeImageSource = (image) => { +export const normalizeImageSource = (image) => { if (!image) return null; if (typeof image === 'string') { diff --git a/app/(tabs)/add.jsx b/app/(tabs)/add.jsx index 37dfea9..62e7947 100644 --- a/app/(tabs)/add.jsx +++ b/app/(tabs)/add.jsx @@ -212,7 +212,7 @@ export default function FormScreen() { placeholder="Wpisz powierzchnię" style={{margin: 10, width: "100%"}} value={formData.area} - keyboardType="numeric" + keyboardType="numbers-and-punctuation" onChangeText={(e) => setFormData({...formData, area: e})} /> setFormData({...formData, area: e})} /> setFormData({...formData, longitude: e})} /> setFormData({...formData, latitude: e})} />