react-native-admob
react-native-admob copied to clipboard
No typescript type definitions available for library
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
Were you able to fix this?
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'"
is it fixed ?
Hello there,
I'm having the same problem with :
"react-native-admob": "^2.0.0-beta.6"
I am also waiting. for this please add types
+1
same problem
use firebase admob
- create a new file called decs.d.ts on your root folder
In this file, write: declare module "react-native-admob"
- Include the declarations file go to tsconfig file and include your decs.d.ts like "include": ["decs.d.ts"],
I make PR for this https://github.com/sbugert/react-native-admob/pull/578. but the project seems to be no longer maintained.