-
Notifications
You must be signed in to change notification settings - Fork 33
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
Help needed with more examples/implementations. #5
Comments
I'm currently try to solve a problem of using a hybrid version of Obj-C/Swift & React Native. Right now, the options seem a little insane and definitely not ideal at all. I can't find many resources online from those that have solved this issue before, nor do any of the ones that currently exist provide any insight. (Requiring cocoapods for example, really..?) In an ideal world I would be able to write a react native app in a separate repo, build the file which will then publish in to my current iOS app. I think it's a terrible idea to combine all of the projects in to one. Do you have any recent examples of solving these problems? Whether it's with the official "Integrating with existing iOS apps" guide or not? |
Hey @DannyiCracked, I don't have a specific example of this scenario (if I understand you correctly), however I'm thinking it might be possible if you can perhaps have all of the needed RN libraries in a "framework" or "static library" that you build. Then perhaps you include that framework in your current iOS app. I don't really even know if that's possible but it sounds like something interesting that could be very useful. |
I'm not even sure I can integrate a react native in the suggested manner. I try following the guides and examples and hit an issue at every step. I think my biggest issue is around the use of cocoapods. Would you have any On Wednesday, 25 May 2016, Dave Sibiski <[email protected]
Danny Tracey |
We ended up not pursuing a hybrid native/react app, we're just using it for new products. That might be a bit telling of our experience trying to make it work 😭 |
That's not the news I was hoping for! I guess if I were to throw out a scenario:
Is this not something I should pursue at this time? |
That works fine, our problem was when we started having multiple of these views, and each of them had to pay the startup cost (which is significant). |
@JohnyDays Were you guys able to "pre-load" a bridge like suggested here? https://github.com/dsibiski/react-native-hybrid-app-examples#pre-loading-the-bridge |
I tried a similar approach, but having multiple views running on the same bridge polluted the js context, and made it cumbersome to work with |
Almost one year ago (time flies), we are hooking up NavigatorIOS with native View Controllers, So we can push and pop views managed by RN and native Obj-C both. By this way, we can leverage our large native code base and still have the flexibility introduced. |
In my limited experience with my own hybrid apps, I've come across some of the examples I've put here. Of course, there are most likely many more use-cases & different/better ways to implement the things I've done here.
@ssssssssssss, @yelled3, @axelg12, @JohnyDays, @grittymindy, @Hybrid-Force, @chirag04, @alinz - You guys seem to have experience with hybrid apps, if you have anything to add or discuss (particularly with the current "issues") I would appreciate your help as no doubt there are many more in the community who would love to see these problems solved, or at least talked about. 😄
The text was updated successfully, but these errors were encountered: