Skip to content

No declaration module for typescript projects #89

Description

@LefanTan

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions