sbugert / react-native-admob

A react-native component for Google AdMob banners
BSD 2-Clause "Simplified" License
1.13k stars 531 forks source link

No typescript type definitions available for library #394

Open zxxza11 opened 5 years ago

zxxza11 commented 5 years ago

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 commented 5 years ago

Were you able to fix this?

koenpunt commented 4 years ago

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 commented 4 years ago

is it fixed ?

MacroBet commented 4 years ago

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

ShivamJoker commented 3 years ago

I am also waiting. for this please add types

RBalconi commented 3 years ago

+1

wandersonalwes commented 3 years ago

same problem

gavinolsen commented 3 years ago

use firebase admob

abhiilash commented 2 years ago
  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 commented 2 years ago

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