
Security News
vlt Launches "reproduce": A New Tool Challenging the Limits of Package Provenance
vlt's new "reproduce" tool verifies npm packages against their source code, outperforming traditional provenance adoption in the JavaScript ecosystem.
@react-native-community/react-native-simple-share
Advanced tools
A minimal share package for react-native
android/app/src/main/java/[...]/MainActivity.java
import com.reactnativecommunity.modules.share.RNSimpleSharePackage;
to the imports at the top of the filenew RNSimpleSharePackage()
to the list returned by the getPackages()
methodandroid/settings.gradle
:
include ':react-native-simple-share'
project(':react-native-simple-share').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-simple-share/android')
android/app/build.gradle
:
compile project(':react-native-simple-share')
import React, { Component } from "react";
import { View, Button } from "react-native";
import SimpleShare from "react-native-simple-share";
export default class ShareExample extends Component {
onShare = async () => {
try {
const result = await SimpleShare.share({
message:
"React Native | A framework for building native apps using React"
});
if (result.action === SimpleShare.sharedAction) {
if (result.activityType) {
// shared with activity type of result.activityType
console.log("result", result);
} else {
// shared
console.log("result", result);
}
} else if (result.action === SimpleShare.dismissedAction) {
// dismissed
console.log("dismissed");
}
} catch (error) {
console.log("error", error.message);
}
};
render() {
return (
<View
style={{
backgroundColor: "white",
flex: 1,
justifyContent: "center",
alignItems: "center"
}}
>
<Button title="Share" onPress={this.onShare}>
Share
</Button>
</View>
);
}
}
FAQs
A minimal share package for react-native
The npm package @react-native-community/react-native-simple-share receives a total of 2 weekly downloads. As such, @react-native-community/react-native-simple-share popularity was classified as not popular.
We found that @react-native-community/react-native-simple-share demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 23 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
vlt's new "reproduce" tool verifies npm packages against their source code, outperforming traditional provenance adoption in the JavaScript ecosystem.
Research
Security News
Socket researchers uncovered a malicious PyPI package exploiting Deezer’s API to enable coordinated music piracy through API abuse and C2 server control.
Research
The Socket Research Team discovered a malicious npm package, '@ton-wallet/create', stealing cryptocurrency wallet keys from developers and users in the TON ecosystem.