title: Using start activity for result in React Native module
body: <p>I have native module in my React application, I want to navigate the user to the settings</p>
  <pre><code>   @ReactMethod
      public void manageStoragePermission() {
          if (Build.VERSION.SDK_INT &gt;= 30) {
              if (!Environment.isExternalStorageManager()) {
                  Intent getpermission = new Intent();
                  getpermission.setAction(Settings.ACTION_MANAGE_ALL_FILES_ACCESS_PERMISSION);
                  reactContext.getCurrentActivity().startActivity(getpermission);
              }
          }
      }
  </code></pre>
  <p>I want to wait for the result when the user returns after <code>granting/not granting</code> permissions. So I tried to start the activity with <code>startActivityForResult()</code>, but I don't have <code>onActivtyResult()</code> callback in my module.
  I also saw that <code>startActivityForResult()</code> is deprecated and I should use <code>registerForActivityResult</code> instead, but I also don't have this method in React's native module.
  What is the correct way to wait for the activity result when dealing with native modules?</p>