alinz / react-native-share-extension

react-native as an engine to drive share extension
MIT License
767 stars 401 forks source link

This no longer works #203

Open Highspeed7 opened 4 years ago

Highspeed7 commented 4 years ago

I don't know if it's the documentation that is old or what, but I cannot get this to work. Being that this seems to be the latest share extension available it's a pretty big let-down. Has anyone gotten this to work with React Native > 0.59? I'm coming with hardly any java knowledge and definitely no Android SDK knowledge. Following the provided readme with the repository, I'm unable to get this working.

RamashishTomar commented 4 years ago

me too i have been struggling with it on 0.61.2, no luck

flo-wolf commented 4 years ago

Any updates?

olivernash commented 4 years ago

also unable to get this to work on 061.5. I noticed there are a few forks that are further ahead and I thought they might work

flo-wolf commented 4 years ago

Went down that same rabbit hole. If you dont want to open each of the 267 forks individually to find out which one is the newest, go to "Insights" and then "Network" instead of "Forks". There you see a timeline and you narrow down the search quite a lot. Haven't continued this though, I can lead you only so far sadly...

MacketSWE commented 4 years ago

Need someone to come to the rescue here... Been trying for days and just can't get this to work. :-S

braincore commented 4 years ago

While I'm time constrained and cannot help directly, I can confirm that I followed the hodgepodge of directions in #182 and got it working in December for RN 0.61.5. Today, I successfully upgraded to RN 0.62.2, and while that had its fair share of issues, none were due to this extension.

ajith-ab commented 4 years ago

i ve used this package with all new features with react native greater than 0.60 support react-native-receive-sharing-intent

kumbhar-ketan commented 4 years ago

This package works in latest react native as well. Follow the right steps given in the document or ReadMe file.

Thanasis1101 commented 4 years ago

I am using react-native 0.61.5 and it worked after a simple change. In AndroidManifest.xml I replaced this line: android:theme="@style/Theme.Share.Transparent" with this line: android:theme="@style/AppTheme"

Of course now there is not a pop-up modal, but a full screen with the modal, but that was enough for me. The thing is that the problem was around the android theme so maybe another transparent theme would do the job.

pankti16 commented 3 years ago

in styles.xml

<style name="Share.Window" parent="@android:style/Animation.Activity"> 
   <item name="android:windowEnterAnimation">@null</item>
   <item name="android:windowExitAnimation">@null</item>
</style>
<style name="Theme.AppCompat.Translucent" parent="Theme.AppCompat.NoActionBar">
    <item name="android:windowIsTranslucent">true</item>
    <item name="android:windowBackground">@android:color/transparent</item>
    <item name="android:windowContentOverlay">@null</item>
    <item name="android:windowNoTitle">true</item>
    <item name="android:windowIsFloating">false</item>
    <item name="android:backgroundDimEnabled">true</item>
    <item name="android:windowCloseOnTouchOutside">true</item>
    <item name="android:windowAnimationStyle">@style/Share.Window</item>
</style>

and AndroidManifest.xml

<activity
    android:noHistory="true"
    android:name=".share.ShareActivity"
    android:configChanges="orientation"
    android:label="@string/title_activity_share"
    android:screenOrientation="portrait"
    android:theme="@style/Theme.AppCompat.Translucent" >

    The above changes worked for me.