Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

react-native-share

Package Overview
Dependencies
Maintainers
1
Versions
157
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-native-share - npm Package Compare versions

Comparing version 1.0.23 to 1.0.24

android/src/main/java/cl/json/ShareApplication.java

0

components/Button.js

@@ -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 @@ {

2

package.json
{
"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)

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc