react-native-user-avatar icon indicating copy to clipboard operation
react-native-user-avatar copied to clipboard

Typescript types error [v1.0.8 is different from main branch]

Open BogdanGorelkin opened this issue 1 year ago • 1 comments

When you are trying to

import UserAvatar from 'react-native-user-avatar'

an error occurs: Could not find a declaration file for module 'react-native-user-avatar'.

I guess pushing a new tag to git from main branch will solve this issue, because last version v.1.0.8 is outdated from main branch of this module. In package.json of v1.0.8 path to should be replaced from "types": "lib/typescript/src/index.d.ts", to "types": "lib/typescript/types.d.ts",

BogdanGorelkin avatar Apr 22 '24 14:04 BogdanGorelkin

This project has not been maintained for some time and contains outdated dependencies. To address this, I created a fork of the project, updated various packages, and resolved several issues. The updated version has been published as a new package, which you can find here: @bhavberi/react-native-user-avatar. Replacing the old package with this one will help resolve these issues.

bhavberi avatar Aug 16 '24 04:08 bhavberi