Skip to content

markText method error on expo App: [Error: For input string: "eehhiitt" under radix 16] #236

@HoangQuoc21

Description

@HoangQuoc21

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]

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions