title: How do you implement PermissionAwareActivity for react native?
body: <p>There is very little documentation on react native's <a href="https://github.com/facebook/react-native/blob/master/ReactAndroid/src/main/java/com/facebook/react/modules/core/PermissionAwareActivity.java" rel="noreferrer"><code>PermissionAwareActivity</code></a> and I need to implement its methods for Android API 23+ to allow the user to accept / decline bluetooth permissions.</p>
  
  <pre><code>import android.support.v4.app.ActivityCompat; 
  import com.facebook.react.modules.core.PermissionAwareActivity;
  import com.facebook.react.modules.core.PermissionListener;
  public class MainActivity extends ExponentActivity implements PermissionAwareActivity {
  
    private PermissionListener mPermissionListener;
  
    @Override
    public int checkPermission(String permission, int pid, int uid) {
      return PackageManager.PERMISSION_GRANTED;
    }
  
    @Override
    public  int checkSelfPermission(String permission) {
      return PackageManager.PERMISSION_GRANTED;
    }
  
    @Override
    public void requestPermissions(String[] permissions, int requestCode, PermissionListener listener) {
      mPermissionListener = listener;
      ActivityCompat.requestPermissions(this, permissions, requestCode);
    }
  
  
    @Override
    public void onRequestPermissionsResult(int requestCode, String[] permissions, int[] grantResults) {
      // callback to native module
      mPermissionListener.onRequestPermissionsResult(requestCode, permissions, grantResults);
    }
    ...
  </code></pre>
  
  <p>I'm not really sure how I'm suppose to implement these methods. Any help is appreciated. Even if someone can point me to some documentation or resource which I cannot find.</p>