I need IMEI for validation in a React Native app. Using reactive-native-imei package, here is the link to that package: (https://github.com/SimenCodes/react-native-imei).
during my code I am getting the following errors:-
- In my Code here;
const GetImei = () => {
const IMEI = require('react-native-imei');
IMEI.getImei().then(imeiList => {
console.log(imeiList); // prints ["AABBBBBBCCCCCCD"]
});
In the second line of my code const IMEI = require('...react-native-imei');
It is giving me that 3 dots below 'r' of react-native-imei and when I hover over it, it's saying "could not find declaration file for module- 'react-native-imei' ", though I have installed the package and also linked it, I also checked In the node-module the package is still there also I have checked settings.gradle file the package is included there so what could be the reason of this error? please help me.