react-native-share
Advanced tools
Comparing version 1.0.23 to 1.0.24
@@ -0,0 +0,0 @@ import React from 'react'; |
@@ -0,0 +0,0 @@ import React from 'react'; |
@@ -0,0 +0,0 @@ import React from 'react'; |
@@ -0,0 +0,0 @@ import React from 'react'; |
@@ -0,0 +0,0 @@ { |
{ | ||
"name": "react-native-share", | ||
"description": "Social Share, Sending Simple Data to Other Apps", | ||
"version": "1.0.23", | ||
"version": "1.0.24", | ||
"repository": { | ||
@@ -6,0 +6,0 @@ "type": "git", |
@@ -48,3 +48,35 @@ # react-native-share [![npm version](https://badge.fury.io/js/react-native-share.svg)](http://badge.fury.io/js/react-native-share) | ||
``` | ||
5. Follow this [guide](https://developer.android.com/training/secure-file-sharing/setup-sharing.html) | ||
Example: | ||
Put this in `AndroidManifest.xml` where `applicationId` is something that you have defined in `android/app/build.gradle`. | ||
```xml | ||
<applicaiton> | ||
<provider | ||
android:name="android.support.v4.content.FileProvider" | ||
android:authorities="${applicationId}.provider" | ||
android:grantUriPermissions="true" | ||
android:exported="false"> | ||
</provider> | ||
</application> | ||
``` | ||
6. Make your `Application` class implements `ShareApplication` | ||
- Make `getFileProviderAuthority` function return the `android:authorities` that was added on AndroidManifest file | ||
- Example: `applicationId` is defined in `android/app/build.gradle`. | ||
``` | ||
import cl.json.ShareApplication | ||
class MyApplication extends Application implements ShareApplication, ReactApplication { | ||
{ | ||
@Override | ||
public String getFileProviderAuthority() { | ||
return "${applicationId}.provider" | ||
} | ||
} | ||
``` | ||
#### Windows | ||
@@ -51,0 +83,0 @@ [Read it! :D](https://github.com/ReactWindows/react-native) |
@@ -0,0 +0,0 @@ { |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
364
928611
52