Skip to content
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

Open
dsibiski opened this issue Sep 8, 2015 · 9 comments
Open

Help needed with more examples/implementations. #5

dsibiski opened this issue Sep 8, 2015 · 9 comments

Comments

@dsibiski
Copy link
Owner

dsibiski commented Sep 8, 2015

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. 😄

@DannyiCracked
Copy link

DannyiCracked commented May 25, 2016

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?

@dsibiski
Copy link
Owner Author

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.

@DannyiCracked
Copy link

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
examples of native integration that doesn't use it? I'm unable to do
something as simple as wrap a react view.

On Wednesday, 25 May 2016, Dave Sibiski <[email protected]
javascript:_e(%7B%7D,'cvml','[email protected]');> wrote:

Hey @DannyiCracked https://github.com/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.


You are receiving this because you were mentioned.
Reply to this email directly or view it on GitHub
#5 (comment)

Danny Tracey
iCracked.com
https://www.icracked.com/?utm_source=gmail&utm_medium=email&[email protected]&utm_campaign=email_signature
[email protected]
San Francisco | London | Berlin | Tokyo

@JohnyDays
Copy link

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 😭

@DannyiCracked
Copy link

That's not the news I was hoping for!

I guess if I were to throw out a scenario:

  • Bundle a react-native app in to a main.jsbundle
  • Link all of the react-native iOS libraries in to an existing project
  • Link the generated main.jsbundle from the other repository
  • Create a bridge to JS
  • Create a single point in my iOS app that loads my react-native JS app in a stand-alone UIView
  • Switch between the two apps within a single deployed release

Is this not something I should pursue at this time?

@JohnyDays
Copy link

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).

@dsibiski
Copy link
Owner Author

@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

@JohnyDays
Copy link

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
Apart from that our biggest problem was cross-comunication from native components to JS

@ssssssssssss
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants