cagodoy / react-native-instagram-story-share

React Native Module for sharing to Instagram's storys

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

React Native Instagram Story Share

Installation

  • execute yarn add react-native-instagram-share

iOS

  • add instagram-stories to the LSApplicationQueriesSchemes key in your app's Info.plist.
...
<key>LSApplicationQueriesSchemes</key>
<array>
	...
	<string>instagram-stories</string>
</array>
...
  • add RNInstagramStoryShare to your Podfile.
platform :ios, '8.0'

target 'MyApp' do
  # use_frameworks!
	...
	pod 'RNInstagramStoryShare', :path => '../node_modules/react-native-instagram-story-share/ios'
	...
end
  • In your ios folder run pod install

Android

  • run yarn link react-native-instagram-share

Usage

import RNInstagramStoryShare from 'react-native-instagram-story-share'

RNInstagramStoryShare.share({
	backgroundImage: 'data:image/png;base64, ...',
	deeplinkUrl: 'https://github.com/',
})
.then(() => console.log('SUCCESS'))
.catch(e => console.log('ERROR', e))

About

React Native Module for sharing to Instagram's storys


Languages

Language:Java 46.7%Language:Objective-C 33.1%Language:JavaScript 15.4%Language:Ruby 4.9%