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?