react-native-instagram-story-share
react-native-instagram-story-share copied to clipboard
DEPRECATED: React Native Module for sharing to Instagram's storys
DEPRECATED! See react-native-story-share for story sharing
React Native Instagram Story Share
Installation
- execute
yarn add react-native-instagram-share
iOS
- add
instagram-stories
to theLSApplicationQueriesSchemes
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))