
Security News
US Government Forces Anthropic to Pull Claude Fable Days After Launch
Anthropic says the directive cited national security concerns over a narrow jailbreak, but offered no specific technical details.
react-native-wm-share
Advanced tools
$ npm install --save react-native-wm-share
$ react-native link react-native-wm-share
import React, { Component } from 'react';
import {
Platform,
StyleSheet,
Text,
View,
TouchableOpacity
} from 'react-native';
import { share } from 'react-native-wm-share'
export default class App extends Component<Props> {
render() {
return (
<View style={styles.container}>
<TouchableOpacity style={{height:60,width:100,backgroundColor:'red'}}
onPress={()=>share(options,callbake)}>
</TouchableOpacity>
</View>
);
}
}
share方法有以下参数:
options: 分享的数据. 包含四个字段.
title(String. 标题)
url(String. 链接)
remoteImages(Array. 远程图片url数组)
localImages(Array. 本地图片路径数组)
callbake: 分享完成的回调. 返回true(分享成功)或false(分享失败)
share方法有以下参数:
options: 分享的数据. 包含四个字段.
title(String.纯文本分享)
remoteImages(Array. 远程图片url数组)
localImages(Array. 本地图片路径数组)
description(String.图片分享默认描述文本)
FAQs
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
Anthropic says the directive cited national security concerns over a narrow jailbreak, but offered no specific technical details.

Security News
A network of 152 Chrome live wallpaper extensions hid ad tracking and made extension-driven traffic look like Google search clicks.

Company News
Socket’s first CISO brings deep experience securing high-growth SaaS companies as open source supply chain threats accelerate.