Giter Club home page Giter Club logo

Comments (19)

broskoski avatar broskoski commented on April 28, 2024 30

Thinking of sharing from the other direction (I.e you're on an app outside the context of an exponent app and want to share content TO the exponent app). Basically registering a react native / exponent app on the share screen.

from expo.

filipmares avatar filipmares commented on April 28, 2024 12

Just submitted. Thanks! https://expo.canny.io/feature-requests/p/ios-app-extension

from expo.

DavitVosk avatar DavitVosk commented on April 28, 2024 10

Hi I am working with share extension too. Could you please advise whether the feature is already added to Expo? And if yes, please provide me some guides for using it. Thanks in advance

from expo.

isaachinman avatar isaachinman commented on April 28, 2024 4

@ide Okay, understood. It's a shame that this is going to end up forcing me to detach. To your knowledge is there one or more existing canny feature requests that I should use, or create a new one?

from expo.

CanRau avatar CanRau commented on April 28, 2024 3

Any news on this?

from expo.

ide avatar ide commented on April 28, 2024 2

It's not at the top of our roadmap right now -- could you add an entry here? (I didn't find an existing entry when searching) https://expo.canny.io/feature-requests

from expo.

ide avatar ide commented on April 28, 2024 1

For updates regarding Expo APIs, see https://docs.expo.io. There is no native share extension API.

We could possibly take a PR that satisfies these nominal criteria:

  • Works on both Android and iOS
  • is small in scope and maintainable (this is subjective)
  • Follows the Expo SDK conventions implied by existing APIs
  • Objective-C and Java implementations to the standard of expo/expo code and facebook/react-native code
  • A few example code snippets we can include in the integration test suite
  • If the JS implementation has logic, Jest tests along with it

from expo.

xcarpentier avatar xcarpentier commented on April 28, 2024 1

Any PR of the share extension feature?

from expo.

brentvatne avatar brentvatne commented on April 28, 2024 1

pr would be welcome!

from expo.

isaachinman avatar isaachinman commented on April 28, 2024 1

@xcarpentier So in general, it is highly dependent on what it is you actually want to share. The react-native-share-extension repository originally began as a project to share text links from web browsers into other apps.

It's since evolved, but mostly via PRs and forks, to support other content like images, videos, multiple images, and so on.

I would suggest looking through this alinz/react-native-share-extension#84 PR, and taking a look at the iOS approach on master. In general, there are a lot more hoops to jump through to achieve this on iOS (unsurprisingly), and it's very hard to achieve feature parity, depending on what sort of content types you want to support.

Let me know if you have any other questions. @AndrewHenderson probably has more knowledge than I do - he might be able to help as well. Would be great to have movement in this area, as there's currently no (even remotely) easy way to do this with RN right now.

from expo.

acornejo avatar acornejo commented on April 28, 2024

Not sure there is a need for an extension, the new RN supports sharing out of the box:

https://facebook.github.io/react-native/docs/share.html

Thus my guess is that this will come to exponent whenever the SDK upgrades to the latest RN branch.

from expo.

filipmares avatar filipmares commented on April 28, 2024

+1

from expo.

peterlandry avatar peterlandry commented on April 28, 2024

I upvoted the above, but also added a roadmap request more specifically for android, as well. I didn't want it to get lost in the shuffle: https://expo.canny.io/feature-requests/p/implement-android-share-receiver

from expo.

swyxio avatar swyxio commented on April 28, 2024

keen on this too!

from expo.

isaachinman avatar isaachinman commented on April 28, 2024

Hi @ide any update on this feature? I am building an app that needs to be inside the device's share menu so that data (photos, specifically) can be passed into the app from external apps, as @broskoski explained.

I would be happy to assist in a PR if you think it'd get merged.

from expo.

ide avatar ide commented on April 28, 2024

I don’t know if there is a request out for this. Please feel free to create a new one if you don’t find one after searching.

from expo.

isaachinman avatar isaachinman commented on April 28, 2024

Hey all - just want to point out that we aren't really actively maintaining react-native-share-extension anymore, and most (to my knowledge) production use cases are running off forks.

Share extensions are hard, and very platform-specific.

May or may not be better to start over if Expo wants to devote resources to it!

from expo.

xcarpentier avatar xcarpentier commented on April 28, 2024

@isaachinman do you know if there is a good starting point? (ie. specific fork or resources)
BTW differences between platforms can be managed and interfaced in front TS code, no?

I think I will start at a new expo-share-extension package on my own and propose.

from expo.

patrickomeara avatar patrickomeara commented on April 28, 2024

Thanks for the great explanation @isaachinman

A share extension would be a welcome addition to expo. If anyone is tackling this problem, I'm happy to help.

from expo.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.