UNPKG

react-native-files-share

Version:
35 lines (33 loc) 842 B
```js npm i react-native-files-share --save ``` or ```js yarn add react-native-files-share --save ``` with React Native < 0.60 ```js react-native link react-native-files-share ``` Let using: ```js import ShareImages from 'react-native-files-share'; ``` Simple as calling: ```js ShareImages.show({ images: [''], // list images base64 or pdf base64 exclude: [''], isPDF: true | false, title: "" // remove if use default }); ``` #### Note: `images` is list base64 of images. Example: ['3hG2424HYu23...', 'Hy234hhj234g...', ...] #### Example: Try an example in repos. This is some screenshots: * iOS: ![ScreenShot](https://raw.githubusercontent.com/codebetterme/react-native-share/master/example/ios_share.png) * android: ![ScreenShot](https://raw.githubusercontent.com/codebetterme/react-native-share/master/example/android_share.png)