Skip to content

mrminhhuy/react-native-share

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

npm i react-native-files-share --save

or

yarn add react-native-files-share --save

with React Native < 0.60

react-native link react-native-files-share

Let using:

import ShareImages from 'react-native-files-share';

Simple as calling:

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
  • android: ScreenShot