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

No typescript type definitions available for library

Open zxxza11 opened this issue 6 years ago • 10 comments

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

zxxza11 avatar Dec 28 '18 18:12 zxxza11

Were you able to fix this?

mcaranay avatar Apr 30 '19 15:04 mcaranay

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'"

koenpunt avatar Sep 15 '19 21:09 koenpunt

is it fixed ?

acerbastimur avatar Jun 04 '20 09:06 acerbastimur

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

MacroBet avatar Aug 04 '20 17:08 MacroBet

I am also waiting. for this please add types

ShivamJoker avatar Sep 06 '20 08:09 ShivamJoker

+1

RBalconi avatar Sep 16 '20 17:09 RBalconi

same problem

wandersonalwes avatar Dec 22 '20 16:12 wandersonalwes

use firebase admob

gavinolsen avatar Jan 14 '21 01:01 gavinolsen

  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"],

abhiilash avatar Jan 22 '22 06:01 abhiilash

I make PR for this https://github.com/sbugert/react-native-admob/pull/578. but the project seems to be no longer maintained.

nouvist avatar Jan 26 '22 00:01 nouvist