Closed djorkaeffalexandre closed 5 years ago
Same for me, and also app crashes! Not working on ios either
Hi @ramon90 , I resolved the problem on Android, is on Share.Theme... If you want to use this library, I have a fork and maintain it to use on Rocket.Chat.ReactNative, you can find examples on Rocket.Chat Share Extension (iOS) and Rocket.Chat Share Extension (Android).. My fork of this library is: rn-extensions-share
@djorkaeffalexandre Thanks for your reply, and sorry for my late reply. I will check it " rn-extensions-share" out. Does it also work using firebase?
@ramon90 yeah! In Rocket.Chat.ReactNative we use Firebase :)
@djorkaeffalexandre so I tried it on ios, but I am still facing the same issue I had before, the share extension appears in the share menu, but when I press it nothing happens. I have followed the installation guide exactly. Is there any further steps that you have done to get it working on ios?
@ramon90 can you give me your repository url to help you?
@djorkaeffalexandre Thank you I fixed the issue. Just one question, on iOS I am using a modal to show the share extension, but it appears without animation, I have the animation module included, also I can run animations within the modal normally. Any clue on that?
Which is your animation module?
@djorkaeffalexandre libRCTAnimation.a
Probably that: https://github.com/alinz/react-native-share-extension/issues/99 Which is your react-native version?
"react": "16.8.3", "react-native": "^0.59.9",
Here animation works fine at header: https://github.com/RocketChat/Rocket.Chat.ReactNative/pull/1064#issue-299415237
Can you try to use react-native-modalbox
instead modal
from react-native
?
@djorkaeffalexandre I tired both
@djorkaeffalexandre ok I will try it there
Oh :( can you give me a gif?
@djorkaeffalexandre I am getting a warning "Module MyShareEx requires main queue setup since it overrides 'init' but doesn't implement 'requiresMainQueueSetup'. In a future release React Native will default to initializing all native modules on a background thread unless explicitly opted-out of.' Could it be related to that warning? Are you getting this same warning?
@djorkaeffalexandre I tried the native Modal component and it is working. Thanks for your help. But do you have any clue on this warning?
yes, i get the same warning, it is not related to it, to fix this i will soon release a new release of rn-extensions-share
with this:
- (BOOL)requiresMainQueueSetup
{
return YES;
}
some of the React-Native libraries don't work on iOS because Share Extension doesn't have access to sharedApplication in objective-c
@djorkaeffalexandre Aha okay, Thanks a lot for your time, I appreciate it :)
Hello @djorkaeffalexandre, the library does not support sharing of multiple images, I was able to add support for that on android, but I could not do it on iOS. Where you able to add support for multiple images on iOS?
In android if I put a console.log on ComponentDidMount this show but not show the view of render.