react-native-shared-images
v1.0.0
Published
iOS 分享链接 多张图片
Downloads
1
Readme
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-camera
and addRNImageWatermark.xcodeproj
- In XCode, in the project navigator, select your project. Add
RNImageWatermark.a
to your project'sBuild Phases
➜Link Binary With Libraries
- Click
RNImageWatermark.xcodeproj
in the project navigator and go theBuild Settings
tab. Make sure 'All' is toggled on (instead of 'Basic'). In theSearch Paths
section, look forHeader Search Paths
and 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);