title: Get IMEI number in React Native
body: <p>I need IMEI for validation in a React Native app. Using reactive-native-imei package, here is the link to that package: (<a href="https://github.com/SimenCodes/react-native-imei" rel="nofollow noreferrer">https://github.com/SimenCodes/react-native-imei</a>).</p>
  <p>during my code I am getting the following errors:-</p>
  <ol>
  <li>In my Code here;</li>
  </ol>
  <pre><code>const GetImei = () =&gt; {
      const IMEI = require('react-native-imei');
      IMEI.getImei().then(imeiList =&gt; {
          console.log(imeiList); // prints [&quot;AABBBBBBCCCCCCD&quot;]
      });
  </code></pre>
  <p>In the second line of my code <code>const IMEI = require('...react-native-imei');</code> It is giving me that 3 dots below 'r' of react-native-imei and when I hover over it, it's saying &quot;could not find declaration file for module- 'react-native-imei' &quot;, 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.</p>
  <ol start="2">
  <li>some other errors I am getting are given in the below images:
  <a href="https://i.stack.imgur.com/qtVgI.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/qtVgI.jpg" alt="enter image description here" /></a>
  <a href="https://i.stack.imgur.com/XUbyN.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/XUbyN.jpg" alt="enter image description here" /></a>
  <a href="https://i.stack.imgur.com/ci42X.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/ci42X.png" alt="enter image description here" /></a></li>
  </ol>