Skip to content

No declaration module for typescript projects #89

@LefanTan

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions