Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No declaration module for typescript projects #89

Open
1 of 4 tasks
LefanTan opened this issue Sep 2, 2021 · 1 comment
Open
1 of 4 tasks

No declaration module for typescript projects #89

LefanTan opened this issue Sep 2, 2021 · 1 comment

Comments

@LefanTan
Copy link

LefanTan commented Sep 2, 2021

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
  • 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

@princefishthrower
Copy link

@LefanTan @erezrokah - just created a pull request on DefinitelyTyped for types: DefinitelyTyped/DefinitelyTyped#56473

I'm happy to create a pull request here to include them if desired!

@erezrokah erezrokah removed their assignment Dec 29, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants