Skip to content

textAlignment not uniform in android-ios #119

Closed
@sharmaofficial123

Description

@sharmaofficial123

Describe the bug
when the position is bottom right ,and the textalign in 'right',it is taking a lot of space in android from the right although it is okay in ios.

To Reproduce
Steps to reproduce the behavior:
Click the image from the camera and apply the textwatermark

Expected behavior
the alignment should be uniform

Screenshots
ANDROID:
Screenshot 2023-09-19 at 3 10 49 PM
IOS:
Screenshot 2023-09-19 at 3 11 01 PM
Code

watermarkTexts: [
  {
    text: `${formattedAddress}\n`,
    positionOptions: {
      position: Position.bottomRight
    },
    style: {
      color: '#FF0000',
      fontSize: 6,
      fontName: Fonts.poppinsRegular,
      textAlign: 'right',
      // bold: false,
      textBackgroundStyle: {
        paddingX: 10,
        paddingY: 10,
        color: '#faaaff',
      },
    },
  },
],

Devlopment environment(please complete the following information):
macOS
react-native-0.68.5

Smartphone (please complete the following information):

Additional context
@JimmyDaddy

Metadata

Metadata

Assignees

Labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions