-
Notifications
You must be signed in to change notification settings - Fork 401
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Working in React Native 0.62.2 (iOS) #209
Comments
@ortonomy Thanks a lot. It was working perfectly for me until I tried to add
|
#48 (comment) resolved the issue. |
@ortonomy Hey. you tried to use Share in ios 14? My code worked fine for ios 13 and below, but with the transitions to ios 14, an empty window is displayed and quickly closes. I haven't changed the code until I can understand what could be the reason in the simulator - works great, on a real device - no |
I have the same issue. |
hi @mgvictor7 and @azesmway -- mine is working on iOS 14: For reference, I've upgraded to the latest React Native (0.63.2) which has an upgrade guide here which massively simplifies your pod file: https://react-native-community.github.io/upgrade-helper/?from=0.62.2&to=0.63.2 For example, after upgrade, this is what my pod file looks like:
FYI: I also have NOT used this extension. I built it myself based on content of this extension:
|
@ortonomy Hi. If it is possible, can I see - KeewishShareExtension.h, KeewishShareExtension.m and index.js, since my transparent window pops up and everything, tried in various ways? |
@azesmway - you just saw them. I've labelled them. |
@ortonomy I apologize for my english, I am writing through google translator. I tried to repeat everything as you wrote - an empty window appears and nothing happens |
@ortonomy thanks for everything. But still can't get it to work on real devices. When execute in the simulator, jsCodeLocation return http://localhost:8081/index.bundle?platform=ios&dev=true&minify=false |
@mgvictor7 Hi. The solution from this post helped me. Worked on a real device |
@ortonomy But now there is a new problem. Opening the sharing window causes the entire application to start and in no way can I restrict this launch.
Calling "MyShare" compiles and runs "App" |
Hey @ortonomy, Thanks for the walkthrough! It works almost perfectly. I am having an issue retrieving the data on the native side, it is return an error of null. Do you know what is missing? I can see the modal and everything just no data. |
You need to access your module from NativeModules.your_module_name.data().then(d => ....) |
@ortonomy appreciate you putting together this solution. Could you show your JavaScript usage of your functioning product? I’m going to make a tutorial following your instructions to hopefully help some people (including myself) out with this. |
Thank you for your help w/ this, @ortonomy . I'm developing a basic sharing starter app & am running into the following compilation-time error:
It appears that maybe the the share extension doesn't know where to look for React Native dependencies? Have tried:
Any pointers on what I'm doing wrong? Again, thank you for all your help. react-native-share-starterPodfile
ShareviewController.h
ShareviewController.m
|
Hello, I used your guide to have this library working, I'm able to get the data on my "Sharing" extension
but I'm stuck trying to move that data to my main react native app, wondering if you have any pointers, tried using Linking but it for whatever reason it does not work |
@ReneMarquez -- use redux/mobx and I used to AppGroups to make sure the state is shared between the two. ( I needed to store photos for later upload to a server) |
Did you ever solve this? |
Really appreciate the work that @jvandenaardweg went to over in issue #182 to try and help everybody out, but I thought I'd open this here to share a solution that doesn't need to modify build settings or fork any repos. I would suggest just writing your own share extension and using some skeleton code from this issue. You can still follow most of the install steps, but without importing this lib, and a few additional steps.
In X-Code, having opened up your project
UIViewController
and implementviewDidLoad
to load react nativeMyShareExtension.h
MyShareExtension.m
Conclusion
You still need to follow the install steps to restrict the types that your app can receive (The plist) and ensure the transport settings let you connect to the react native bundler server, but these were the most critical steps to getting my share extension working.
The text was updated successfully, but these errors were encountered: