DEPRECATED! See react-native-story-share for story sharing
- execute
yarn add react-native-instagram-share
- 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
- run
yarn link react-native-instagram-share
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))