Skip to content

textStyle prop not working. Also cannot find type declarations #98

@ahnafnafee

Description

@ahnafnafee

Using version v1.0.8.

<UserAvatar
      size={90}
      name={`${card.firstName} ${card.lastName}`}
      src={card.profilePicUrl}
      borderRadius={90 / 2}
      style={{
          borderColor: "#00A5B9",
          borderWidth: 3,
      }}
      textStyle={{
          fontFamily: 'OpenSans-Bold',
          fontSize: 20,
      }}
/>

Referred to these two issues first (#62 and #60 ) where it was mentioned it was resolved in v1.0.8 but I am still getting the issue.

Here's how the types are referenced in package.json for react-native-user-avatar in v1.0.8

"react-native": "src/index.js",
  "types": "lib/typescript/src/index.d.ts",
  "files": [
    "lib/",
    "src/"
  ],

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