Closed phoneixkwok closed 5 years ago
Works after removing the following line from styles.xml
<item name="android:windowIsFloating">true</item>
Complete styles.xml
<resources>
<!-- Base application theme. -->
<style name="AppTheme" parent="Theme.AppCompat.Light.NoActionBar">
<!-- Customize your theme here. -->
</style>
<style name="Share.Window" parent="Theme.AppCompat">
<item name="android:windowEnterAnimation">@null</item>
<item name="android:windowExitAnimation">@null</item>
</style>
<style name="Theme.Share.Transparent" parent="Theme.AppCompat">
<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:backgroundDimEnabled">true</item>
<item name="android:windowAnimationStyle">@style/Share.Window</item>
</style>
</resources>
@phoneixkwok You saved my day. My app crashed on android without any logs
I followed the guide in README.md to setup "react-native-share-extension" on Android.
And some changes are made due to compilation error and android version changed
ShareApplication.java
values/styles.xml
And I added share.android.js to my project
Finally, the app is able to run. And "MyShareEx" is able to shown in the "Share List" When I choose to share via "MyShareEx", the screen shown is not as expected. It shown a transparent screen with title "MyShareEx" at the center.
It seems that the "share.android.js" is not showing.
Can anyone help me with this? Thanks.
"react-native": "0.59.5", "react-native-modalbox": "^1.7.1", "react-native-share-extension": "^1.2.1"
Android Emulator SDK version: 7.0