1.1.1 • Published 4 years ago

@react-native-social-share/instagram v1.1.1

Weekly downloads
17
License
MIT
Repository
github
Last release
4 years ago

react-native-instagram

Getting started

$ npm install @react-native-social-share/instagram --save

or

$ yarn add @react-native-social-share/instagram

For react-native < 0.60

Mostly automatic installation

$ react-native link @react-native-social-share/instagram

Setup

iOS

Custom URL Scheme In order for your app to use Instagram's custom URL scheme, you mush whitelist the scheme by adding instagram:// to the LSApplicationQueriesSchemes key in your app's Info.plist.

https://developers.facebook.com/docs/instagram/sharing-to-feed/

Usage

Instagram allows share files that are stored in library. So if you have an local file, you can first save it to library via CameraRoll

import CameraRoll from '@react-native-community/cameraroll';
import InstagramShare from '@react-native-social-share/instagram';

const localFile = "";
const assetId = CameraRoll.save(localFile, { type: 'photo' });

InstagramShare.shareVideo({ assetId });
InstagramShare.sharePhoto({ assetId });
1.1.1

4 years ago

1.1.0

4 years ago

1.0.7

4 years ago

1.0.6

4 years ago

1.0.5

4 years ago

1.0.4

5 years ago

1.0.3

5 years ago

1.0.2

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago