Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
HoangQuoc21 opened this issue Sep 13, 2024 · 0 comments

Comments

@HoangQuoc21
Copy link

HoangQuoc21 commented Sep 13, 2024

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]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant