-
Notifications
You must be signed in to change notification settings - Fork 24.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
share extension using React Native #1626
Comments
Yes, you can do this 😄 You will have to use Objecitve-C or Swift and write it as you would with any other native app at the moment. |
@brentvatne I'm curious if there's any fundamental reason a share extension couldn't talk to an Example GitHub repo with project So far the proof-of-concept setup is pretty straightforward, but I feel like I'm missing something very simple that will either enable this proof of concept or totally shut it down 😉. In my Upon activating my Share Extension from another app, my
The line (If this is an area worth exploring, but I need to create a separate GitHub issue, just let me know) |
Hey @andrewsardone There's an awesome place to ask question like this one: StackOverflow. It's the best system for Q&A. Many people from the community hang out there and will be able to see your question, you can vote on answers and mark question as answered etc. This lets us keep a list of bug reports and feature requests on github and especially Product Pains (again, with voting which is really nice). If you think StackOverflow works for you please consider posting there instead and closing this issue. I'm posting this here because github issues haven't been working very well for us and because StackOverflow is so much better. Thanks for reading! :) |
Fair point, @satya164. I have posted a Stack Overflow question here: http://stackoverflow.com/q/33990925/792979 |
@andrewsardone Thank you |
@andrewsardone - sorry just saw this! did you get it working? if so, a blog post would be awesome :) or a new section in the docs |
No prob, @brentvatne! To get things working, it was just a matter of adding the The solution came from this StackOverflow answer. Here is an example project: https://github.com/andrewsardone/react-native-ios-share-extension Hopefully that's enough to help others get started! |
Is there some kind of tutorial? |
@andrewsardone I used your ideas to get a Today Widget kind of working: #7391 |
@andrewsardone I used your sample project and made the complete module for both ios and android. |
@rclai I might look into it. |
Anyone had any success using https://github.com/alinz/react-native-share-extension? I'm having real problems getting it working. The share extension appears in iOS, but if it try an use it, say by pressing 'share' in Safari, nothing happens except that Safari completely locks up. |
Same for me. All compiling and deploying without error. Try to share from Photos or Safari and the extension is available, but when I click it, the app (Photos or Safari) hangs. Any ideas greatly appreciated. |
@ordishs i figure out what was wrong with mine. Basically I have several native libraries in my project, and even though the share extension doesn't use them it needs to be linked in the same way. I have a headless JS app that starts as a side effect of importing the top level index.js file which needs a few native libs. If the share extension isn't linked in the same way as my main project it won't work. |
is there a canonical way to do this now within react native? |
thank you @alinz. i tried last night but ran into issues with |
Allows multi-file uploads on iOS
Just wondering whether we can write ios share extension by using react native? somthign like this
The text was updated successfully, but these errors were encountered: