Looking for help in (Deep Linking) Open Email attachment to my app. For example => import csv data to the app or any alternative solution Please!

#1

[✓] Review the documentation: https://facebook.github.io/react-native
[✓] Search for existing issues: https://github.com/facebook/react-native/issues
[✓] Use the latest React Native release: https://github.com/facebook/react-native/releases

Environment

OS: macOS High Sierra 10.13.4
Node: 9.4.0
Yarn: 1.7.0
npm: 5.6.0
Watchman: 4.9.0
Xcode: Xcode 9.4.1 Build version 9F2000
Android Studio: 3.1 AI-173.4697961.

Packages: (wanted => installed)
react: 16.3.1 => 16.3.1
react-native: https://github.com/expo/react-native/archive/sdk-27.0.0.tar.gz => 0.55.2

Description

I am looking for the way to open file with my app to import some data in react-native app
However, I did find anything!
For example, I have an CSV file, and I want to open that with my React Native app to import some data in app from the file.

How can my app listen for particular file from email?

I found one npm package but I think it’s not enough what I am looking for.
Node Package link: https://github.com/huangzuizui/react-native-file-opener

Reproducible Demo

I don’t have a demo code but I can explaing here…


See the file is for map.me and in screenshot they got an option to import file in particular app.
looking for something like this.

As per this documentation I tried this but my app is still not detecting csv.

{
  "expo": {
    "name": "ezdocket",
    "description": "New generation law app.",
    "slug": "ezdocket",
    "scheme": "ezdocket",
    "privacy": "unlisted",
    "sdkVersion": "27.0.0",
    "platforms": [
      "ios",
      "android"
    ],
    "version": "1.0.0",
    "orientation": "portrait",
    "icon": "./assets/icon.png",
    "splash": {
      "image": "./assets/ez-docket-icon-splash.png",
      "resizeMode": "contain",
      "backgroundColor": "#ffffff"
    },
    "ios": {
      "supportsTablet": true,
      "bundleIdentifier": "com.smashreality.ezdocket",
      "infoPlist": {
        "CFBundleDocumentTypes": [
          {
            "CFBundleTypeExtensions": "csv",
            "CFBundleTypeName": "csvFile"
          }
        ]
      },
      "publishBundlePath": "ios/ezdocket/Supporting/shell-app.bundle",
      "publishManifestPath": "ios/ezdocket/Supporting/shell-app-manifest.json"
    },
    "android": {
      "package": "com.ezdocket.ezdocket",
      "publishBundlePath": "android/app/src/main/assets/shell-app.bundle",
      "publishManifestPath": "android/app/src/main/assets/shell-app-manifest.json"
    }
  }
}
0 Likes

#2

This is not a supported feature. Here is my last look at what would need to change to enable such a feature. Share images from Dropbox/Google Photos into Expo app?

0 Likes

closed #3

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.

0 Likes