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 typescript type definitions available for library #394

Open
zxxza11 opened this issue Dec 28, 2018 · 10 comments
Open

No typescript type definitions available for library #394

zxxza11 opened this issue Dec 28, 2018 · 10 comments

Comments

@zxxza11
Copy link

zxxza11 commented Dec 28, 2018

Could not find a declaration file for module 'react-native-admob'. 'e:/react/almustaqbal/node_modules/react-native-admob/index.js' implicitly has an 'any' type.
Try npm install @types/react-native-admob if it exists or add a new declaration (.d.ts) file containing declare module 'react-native-admob';ts(7016)

working in react native : 57.8
installed and liked admob

@mcaranay
Copy link

Were you able to fix this?

@koenpunt koenpunt changed the title Could not find a declaration file react native admob No typescript declarations available for library Sep 15, 2019
@koenpunt koenpunt changed the title No typescript declarations available for library No typescript type definitions available for library Sep 15, 2019
@koenpunt
Copy link
Collaborator

There currently indeed are no type definitions for this library, so you should probably go with the second suggestion "or add a new declaration (.d.ts) file containing declare module 'react-native-admob'"

@acerbastimur
Copy link

is it fixed ?

@MacroBet
Copy link

MacroBet commented Aug 4, 2020

Hello there,
I'm having the same problem with :
"react-native-admob": "^2.0.0-beta.6"

@ShivamJoker
Copy link

I am also waiting. for this please add types

@RBalconi
Copy link

+1

@wandersonalwes
Copy link

same problem

@gavinolsen
Copy link

use firebase admob

@abhiilash
Copy link

  1. create a new file called decs.d.ts on your root folder

In this file, write:
declare module "react-native-admob"

  1. Include the declarations file
    go to tsconfig file and include your decs.d.ts like
    "include": ["decs.d.ts"],

@nouvist
Copy link

nouvist commented Jan 26, 2022

I make PR for this #578. but the project seems to be no longer maintained.

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

No branches or pull requests