Skip to content

Commit d252f93

Browse files
authored
Update with FileProvider info and Android changes
1 parent 475bc75 commit d252f93

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

README.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,11 @@ public class MainApplication extends Application implements ReactApplication {
9191

9292
```
9393

94+
#### File Attachments on Android
95+
96+
Addition setup is required for Android file sharing, see https://developer.android.com/training/secure-file-sharing/setup-sharing
97+
98+
It is expected that the `android:authorities` property is set to the app's package name with ".fileprovider" appended to the end.
9499

95100

96101
### Manual Installation: iOS
@@ -162,7 +167,7 @@ export default class App extends Component {
162167

163168
### Note
164169

165-
On Android, the `callback` will only be called if an `error` occurs. The `event` argument is unused!
170+
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.
166171

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

0 commit comments

Comments
 (0)