avishayil / react-native-user-avatar

Avatar Component For React Native
MIT License
206 stars 57 forks source link

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

Open BogdanGorelkin opened 6 months ago

BogdanGorelkin commented 6 months ago

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",

bhavberi commented 3 months ago

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.