title: React-Native: Unable to open device settings from my android app
body: <p>I'm using React-Native (^0.35.0) for making Android application. There is scenario where I need to check whether internet connectivity is present or not. If there is no internet connectivity then I need show a button which will open device settings (through which user can enable his connectivity).</p>
  
  <p>I'm Using <strong>Linking</strong> library provided by react-native.</p>
  
  <p>I am trying in followin way:</p>
  
  <pre><code>componentWillMount(){
      Linking.canOpenURL('app-settings:')
        .then(supported =&gt; {
          if (!supported) {
            console.log('Can\'t handle url: ' + url);
         } else {
         return Linking.openURL('app-settings:');
        }
    }).catch(err =&gt; console.error('An error occurred', err));
  }
  </code></pre>
  
  <p>then above code gives- console <strong>Can't handle url:app-settings:</strong></p>
  
  <p>When I tried following:</p>
  
  <pre><code>componentWillMount(){
      Linking.canOpenURL('app-settings:')
        .then(supported =&gt; {
          return Linking.openURL('app-settings:');
        }).catch(err =&gt; console.error('An error occurred', err));
      }
  </code></pre>
  
  <p>Above code gives- <strong>Error: Could not open URL 'app-settings:': No Activity found to handle Intent { act=android.intent.action.VIEW dat=app-settings: flg=0x10000000 }</strong></p>
  
  <p>Is there anything that I am missing here? or Is there is need to change in any other file like <strong>AndroidMainfest.xml</strong>, <strong>MainActivity.java</strong>, etc..</p>