Skip to content

Commit

Permalink
Update with FileProvider info and Android changes
Browse files Browse the repository at this point in the history
  • Loading branch information
adamski authored Jun 9, 2018
1 parent 475bc75 commit d252f93
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,11 @@ public class MainApplication extends Application implements ReactApplication {

```

#### File Attachments on Android

Addition setup is required for Android file sharing, see https://developer.android.com/training/secure-file-sharing/setup-sharing

It is expected that the `android:authorities` property is set to the app's package name with ".fileprovider" appended to the end.


### Manual Installation: iOS
Expand Down Expand Up @@ -162,7 +167,7 @@ export default class App extends Component {

### Note

On Android, the `callback` will only be called if an `error` occurs. The `event` argument is unused!
On Android, the `callback` will only be called if an `error` occurs. The `event` argument will contain a string with the exception or error message.

## Here is how it looks:
![Demo gif](https://github.com/chirag04/react-native-mail/blob/master/screenshot.png)

0 comments on commit d252f93

Please sign in to comment.