GithubHelp home page GithubHelp logo

Comments (4)

mscmnc avatar mscmnc commented on June 2, 2024 2

Could not find a declaration file for module '@rainbow-me/animated-charts'. '/Users/talhaatiq/Documents/GitHub/mustaqbil-reactnative/node_modules/@rainbow-me/animated-charts/src/index.js' implicitly has an 'any' type. Try npm i --save-dev @types/rainbow-me__animated-charts if it exists or add a new declaration (.d.ts) file containing `declare module '@rainbow-me/animated-charts';

simulator_screenshot_E18F279E-DE6F-45EF-8C48-CF846FD5A984 `

I had this error too.
The APP should run with that error too, it only points out that's can't find types. And it will not find because there is no such library with typescript at the moment.
But if you wanna get rid of the error. Just create a folder with the name "types" then create a subfolder like "@rainbow-me-animated-charts" and add the index.d.tsx file.
Inside index.d.tsx declare module:

declare module "@rainbow-me/animated-charts";

My React Native (Expo) with TypeScript version is 0.64.3.

from react-native-animated-charts.

canpoyrazoglu avatar canpoyrazoglu commented on June 2, 2024

There are no TypeScript typings for this library, but the actual error is something else. Without the actual code that you are using for the library it's very hard to pinpoint.

from react-native-animated-charts.

sionkim00 avatar sionkim00 commented on June 2, 2024

I'm having a same issue. Followed exactly what's being done on https://github.com/rainbow-me/react-native-animated-charts.

from react-native-animated-charts.

taatiq882 avatar taatiq882 commented on June 2, 2024

I couldn't resolve this error so I switched to react-native-wagmi-charts.
Hope it does what you need.

from react-native-animated-charts.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.