У меня есть проблема с отправкой пути к мрачному маркеру. My Path ImagePath: /storage/emult/0/android/data/th.co.test.onsitereportsystemapp/files/omorder/101/24/20250723_160818.jpg. Проблема в том, что он показывает ошибку AddTimeStampWithLocation: [Ошибка: Установите изображение!]. Как мне отправить путь? < /P>
У меня есть проблема с отправкой пути к мрачному маркеру. My Path ImagePath: /storage/emult/0/android/data/th.co.test.onsitereportsystemapp/files/omorder/101/24/20250723_160818.jpg. Проблема в том, что он показывает ошибку AddTimeStampWithLocation: [Ошибка: Установите изображение!]. Как мне отправить путь? < /P> [code]export const addTimestampWithLocation = async (imagePath, options = {}) => { try { console.log('🖼 imagePath:', imagePath);
const exists = await RNFS.exists(imagePath); console.log('✔ File exists:', exists); if (!exists) throw new Error('Image file does not exist');
const hasPermission = await requestLocationPermission(); if (!hasPermission) throw new Error('Location permission not granted.');
return imagePath; } catch (err) { console.error('addTimestampWithLocation error:', err); throw err; } }; [/code] Я просто хочу, чтобы MarkedPath отобразил данные на изображении.