1.0.0 • Published 9 years ago
react-native-shared-images v1.0.0
react-native-shared-images
# iOS 分享链接 多张图片
iOS
npm install react-native-shared-images --save- In XCode, in the project navigator, right click
Libraries➜Add Files to [your project's name] - Go to
node_modules➜react-native-cameraand addRNImageWatermark.xcodeproj - In XCode, in the project navigator, select your project. Add
RNImageWatermark.ato your project'sBuild Phases➜Link Binary With Libraries - Click
RNImageWatermark.xcodeprojin the project navigator and go theBuild Settingstab. Make sure 'All' is toggled on (instead of 'Basic'). In theSearch Pathssection, look forHeader Search Pathsand make sure it contains both$(SRCROOT)/../../../node_modules/react-native/React- mark both asrecursive. - Run your project (
Cmd+R)
####使用说明
##1、先引用库
import { SharedImages } from 'react-native-shared-images';
##2、接口说明
/*分享多张图片*
*@para option {
imagePaths array 数组,存放图片物理地址
}
*/
await SharedImages.shareImages(option);
/*分享链接*
*@para option {
url String 存放链接地址
}
*/
await SharedImages.shareUrl(option);1.0.0
9 years ago