title: react-native-community / react-native-netinfo listners are not working on android
body: <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-js lang-js prettyprint-override"><code> state = {
      isConnected: null,
    };
    
      componentDidMount() {
      this._netWorkConnection();
    }
    
    componentWillUnmount() {
      this._netWorkConnection();
    }
    
      _netWorkConnection = () =&gt; {
      NetInfo.addEventListener(state =&gt; {
        console.log('Is connected?', state.isInternetReachable);
  
        const connection = state.isInternetReachable;
  
        this.setState(
          {
            isConnected: connection,
          },
          () =&gt; {
            if (this.state.isConnected === false) {
              this._showConnectionMessage();
            }
          },
        );
      });
    };
  
  _showConnectionMessage() {
    Util.showMessage('No internet');
  }
    
    </code></pre>
  </div>
  </div>
  </p>
  
  <p>react-native-community / react-native-netinfo listners are not working on android but it is working fine in iOS 
  though i have added internet permissions in my android manifest <code>&lt;uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" /&gt;
  </code>
  and has added <code>androidXCore = "1.0.2"</code> in build.gradle but no luck in android , below is my code</p>