2.0.8 • Published 5 years ago

@nickfla1/react-native-share-instagram v2.0.8

Weekly downloads
33
License
MIT
Repository
-
Last release
5 years ago

react-native-share-instagram

Share your image with the Instagram app using Intents (iOS & Android)

Getting started

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

Automatic installation

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

Usage

import RNReactNativeSharingWinstagram from 'react-native-sharing-winstagram';

RNReactNativeSharingWinstagram.shareWithInstagram(this.state.fileName, this.state.base64EncodedImageString, message => {
  if (message) alert(message)
}, error => {
  alert(error.message) // error callback for IOs only
})

Troubleshouting

  • Make sure you have authorised in Info.plist your app to communicate with the Instagram app (iOS):
<key>LSApplicationQueriesSchemes</key>
<array>
  <string>instagram</string>
</array>

<key>NSPhotoLibraryUsageDescription</key>
<string>This app requires access to the photo library to share on Instagram.</string>

Advanced usage

  • You can use the rn-fetch-blob library to download your remote image and convert it to .base64()

Next steps

Note: This is a fork from this repository.
  • Modernize the whole project both javascript and native
  • Add type checking
  • Uniform API and error handling
2.0.8

5 years ago

2.0.7

5 years ago

2.0.6

5 years ago

2.0.5

5 years ago

2.0.4

5 years ago

2.0.3

5 years ago

2.0.2

5 years ago

2.0.1

5 years ago

2.0.0

5 years ago