How to open ODK collect app from React Native app?

  1. What is the problem?
    I have an app in react native to list forms using Open ROSA API. I want to have a feature where user presses on the form and it opens in the ODK Collect app,

  2. What app or server are you using and on what device and operating system?
    React Native for android build.

  3. What you have you tried to fix the problem?
    I have followed the documentation https://docs.getodk.org/launch-collect-from-app/
    I am using this react native package
    https://github.com/poberwong/react-native-intent-launcher
    to launch the intent
    Here is my sample code for sending intent from React Native app

    IntentLauncher.startActivity({
      action: 'android.intent.action.EDIT',
      data: `content://org.odk.collect.android.provider.odk.forms/forms/${form_id}`
    })

Hi, I have no background in Android programming but this sounds exactly like what the ODK Collect widgets are doing. They are shortcuts to individual forms pinned to a version, so there's some kind of ID being sent with the intent. I bet the code for the widget somewhere in the Collect codebase would be a good starting point.