react-native-settings icon indicating copy to clipboard operation
react-native-settings copied to clipboard

No declaration module for typescript projects

Open LefanTan opened this issue 4 years ago • 1 comments

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 avatar Sep 02 '21 00:09 LefanTan

@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!

princefishthrower avatar Oct 12 '21 22:10 princefishthrower