Jobeso / react-native-story-share

Share your images to instagram and snapchat stories with react native.
107 stars 54 forks source link

Is it possible to use this package without integrating with SnapChat? #19

Open armanm opened 4 years ago

armanm commented 4 years ago

I just want to use this with Instagram only but it seems this package requires to have SnapChat SDK installed the . Is this correct?

Jobeso commented 4 years ago

Yes, this library requires Snap SDK to be installed alongside. However, there are already some forks removing snapchat, only integrating the Instagram story part.

taschik commented 4 years ago

Mind sharing a link to it? It would be great to have this actually configurable to reduce final app size.

armanm commented 4 years ago

Thanks @Jobeso. I ended up forking your package to discard the SnapChat dependencies.

In the end I realised in order for this package to work in my project I have to also downgrade the Gradle version from 5.4.1 to 4.10.2 or else I'd have to deal with this error:

* What went wrong:
Could not compile build file android/build.gradle'.
> startup failed:
  General error during semantic analysis: Unsupported class file major version 57

  java.lang.IllegalArgumentException: Unsupported class file major version 57

My understanding of Gradle and the Android ecosystem is subzero 😂 Could you tell me what is the implications of downgrading Gradle version in order to use your package?

bobber205 commented 4 years ago

@armanm You can give my new version of this package a try if you want. https://yarnpkg.com/en/package/react-native-legit-story-share

savaskalkan commented 3 years ago

Hey @armanm, I removed snapchat from project you can pull from my fork.

https://github.com/savaskalkan/react-native-story-share

react native 0.60> (0.63.3) Btw it was not work on ios because of snapchat so I removed it and then worked.