I'm build an Expo app and use react-native-image-marker to mark the photo taking time on the photo and then the below error happens
const take = async () => {
if (cameraRef && cameraRef.current) {
setProcessing(true)
const photo = await cameraRef.current.takePictureAsync(cameraOptions)
console.log('--> take photo: ', photo)
try {
const markedImageURI = await Marker.markText({
backgroundImage: {
src: photo.uri,
},
watermarkTexts: [
{
text: "text",
positionOptions: {
position: Position.center,
},
style: {
color: 'white',
fontSize: 20,
fontName: 'Arial',
}
}
],
})
} catch (e: any) {
console.log('--> Photo taking error: ', e)
}
setTempPhoto(photo)
}
setProcessing(false)
}
--> The error console.log result: [Error: For input string: "eehhiitt" under radix 16]