Couldn't find declaration file for 'react-native-animated-splash-screen'
See original GitHub issueIssue Hello! I’ve recently installed the splash screen via Yarn, but when I try and import the AnimatedSplash component, this shows up on my IDE!
Could not find a declaration file for module 'react-native-animated-splash-screen'. 'c:/Users/moallim10/StuLink/stulink-app/node_modules/react-native-animated-splash-screen/index.js' implicitly has an 'any' type. Try npm install @types/react-native-animated-splash-screenif it exists or add a new declaration (.d.ts) file containingdeclare module ‘react-native-animated-splash-screen’;
This then doesn’t let me use the AnimatedSplash component properly!
Enviroment React Navigation V5 React Native 0.63 Expo SDK 38
Issue Analytics
- State:
- Created 3 years ago
- Comments:5 (1 by maintainers)
Top Results From Across the Web
Could not find a declaration file for module ''react-materialize ...
I'm unsure how to resolve this import statement to work with ts-loader and webpack. The index.js of react-materialize looks likes this. But how ......
Read more >Troubleshooting | React Navigation
Troubleshooting. This section attempts to outline issues that users frequently encounter when first getting accustomed to using React Navigation.
Read more >could not find a declaration file for module || React js solved
Hello guys, with short line of code this error will be solved.Subscribe this channel to get solution for the programmingError ...
Read more >referenceerror can t find variable axios - metara.net
Runtime aspect of `HttpStatusCode` missing from JavaScript files. Basically the variable in Javascript can be anything that's valid according to ECMAScript 5.1 ...
Read more >A Definitive React-Native Guide for React Developers
As you can see, you need to render a different component while you are loading the font (the splash screen would be perfect!),...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

@moaIIim and for anyone needed the declaration:
create a file in your react-native folder called
mytypes.d.tsand paste the following code:Thanks for the help!