alinz / react-native-share-extension

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

ReactNativeShareExtension requires main queue setup since it overrides `init` but doesn't implement `requiresMainQueueSetup` #101

Closed AndrewHenderson closed 6 years ago

AndrewHenderson commented 6 years ago

I'm currently receiving this error at app start:

screen shot 2018-05-09 at 11 50 12 am

Apparently, it was an issue in React Native's RCTImageLoader. Perhaps we can gain some insight from how they solved it: https://github.com/facebook/react-native/issues/17504

AndrewHenderson commented 6 years ago

This issue was caused by adding the following code to dismiss another warning I was receiving:

import { YellowBox } from 'react-native';
YellowBox.ignoreWarnings(['Warning: isMounted(...) is deprecated', 'Module RCTImageLoader']);

I don't think there is any issue with this library. I think I just messed something up.