Open Highspeed7 opened 4 years ago
me too i have been struggling with it on 0.61.2, no luck
Any updates?
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
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...
Need someone to come to the rescue here... Been trying for days and just can't get this to work. :-S
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.
i ve used this package with all new features with react native greater than 0.60 support react-native-receive-sharing-intent
This package works in latest react native as well. Follow the right steps given in the document or ReadMe file.
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.
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.
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.