Quantcast
Channel: Active questions tagged react-native+android - Stack Overflow
Viewing all articles
Browse latest Browse all 28476

React Native - Get file content from intent filter

$
0
0

I am using react native and expo. I edit the app.json so any time I open local file from the device (click on the file) with "play" extension it open my app. The file contains text. This is some of my app.json:

"android": {
      "package": "com.myapp",
      "intentFilters": [
        {
          "action": "VIEW",
          "data": {
            "mimeType": "*/*",
            "host": "*",
            "pathPattern": ".*\\.play"
          },
          "category": [
            "DEFAULT"
          ]
        }
      ]
    }

How can I get the content of the file when the application is opened?


Viewing all articles
Browse latest Browse all 28476

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>