React-native-share: MainApplication cannot be cast to ShareApplication on Android 8

Created on 21 May 2018  路  3Comments  路  Source: react-native-share/react-native-share

react-native-share version 1.0.27
Testing on an emulator running Android 8

We get this error:
screen shot 2018-05-21 at 14 12 20

This is the line:
final String authority = ((ShareApplication) reactContext.getApplicationContext()).getFileProviderAuthority();

Any one with more experience on the bridge can help?

bug android

Most helpful comment

I followed the manual installation docs and it worked, thanks.

But please don't make it collapsable, make everyone see it.

All 3 comments

I followed the manual installation docs and it worked, thanks.

But please don't make it collapsable, make everyone see it.

@enieber I think some steps of manual installation should be outside of it

as react-native link can't handle all that steps

i see crash only appear with android device run android OS >= 8.0
fileuriexposedexception through ClipData.Item.getUri()

Was this page helpful?
0 / 5 - 0 ratings

Related issues

byk04712 picture byk04712  路  3Comments

alemarra89 picture alemarra89  路  3Comments

MrHazimAli picture MrHazimAli  路  3Comments

crivera picture crivera  路  3Comments

andyfen picture andyfen  路  4Comments