ReactNativeJS: Can't find variable: Actions
<p>I have used react-native-background-geolocation Plugin for background gps tracking but i frequently getting this error "Can't find variable: Actions"</p>

<p>although i am getting correct location object</p>

<p>i have used following code</p>

<pre><code>BackgroundGeolocation.on('location', (location) =&gt; {
      //handle your locations here 
      console.log(JSON.stringify(location));
      Actions.sendLocation(location);
    });
</code></pre>

<p>it would be very helpfull for me if anyone have faced this issue ever or know how to solve !!</p>