Skip to content

local image starting with file:// won't work #219

Answered by JimmyDaddy
pierroo asked this question in Q&A
Discussion options

You must be logged in to vote

@pierroo the API has been changed in v1.x.x, you should modify you code like below

  viewShotRefs?.current
    .capture()
    .then(async (uri) => {
      console.log('view shot: ', uri);
      try {
        const markRes = await ImageMarker.markText({
          backgroundImage: {
            src: uri,
            scale: 1,
          },
          watermarkTexts: [
            {
              text: 'blablabla',
              position: {
                position: Position.bottomRight,
              },
              style: {
                color: '#ffffff',
                fontSize: 36,
                shadowStyle: {
                  dx: 1,
                  dy: 1,
                  radius: 

Replies: 3 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@pierroo
Comment options

Answer selected by pierroo
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #218 on February 09, 2024 12:30.