react-native-settings
react-native-settings copied to clipboard
No declaration module for typescript projects
Issue
Describe your issue here with as much detail possible. I'm trying to use this package for my typescript project but it seems like @types/react-native-settings is not available.
When I import the package, i receive an error that says
Try `npm i --save-dev @types/react-native-settings` if it exists or add a new declaration (.d.ts) file containing `declare module 'react-native-settings';
when running the command `npm i --save-dev @types/react-native-settings`, it seems like the types declaration doesn't exist yet.
Project Files
iOS
Click To Expand
ios/Podfile:
- [ ] I'm not using Pods
- [x] I'm using Pods and my Podfile looks like:
# N/A
AppDelegate.m:
// N/A
Android
Click To Expand
android/build.gradle:
// N/A
android/app/build.gradle:
// N/A
android/settings.gradle:
// N/A
MainApplication.java:
// N/A
AndroidManifest.xml:
<!-- N/A -->
Environment
Click To Expand
react-native info output:
OUTPUT GOES HERE
-
Platform that you're experiencing the issue on:
- [ ] iOS
- [ ] Android
@LefanTan @erezrokah - just created a pull request on DefinitelyTyped for types: https://github.com/DefinitelyTyped/DefinitelyTyped/pull/56473
I'm happy to create a pull request here to include them if desired!