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

Interest in moving to RNPM plugin?? #186

Open
jtag05 opened this issue Feb 20, 2018 · 6 comments
Open

Interest in moving to RNPM plugin?? #186

jtag05 opened this issue Feb 20, 2018 · 6 comments

Comments

@jtag05
Copy link

jtag05 commented Feb 20, 2018

I was wondering if there is any interest in moving from a full blown fork of react-native to a plugin approach like react-native-windows adopted. My current project requirements make utilizing this library rather difficult as it stands. While I'm sure I can finagle a solution to my issues, wrestling with the fork approach has piqued my interest in maybe trying my hand at adopting this package into an rnpm plugin. Any feedback would be much appreciated.

@ericvicenti
Copy link
Contributor

One thing to note, its rumored that Apple will soon make it much easier to run iOS apps on macOS. We might want to wait for the 2018 WWDC cycle to see what they introduce, because it might make our lives a lot easier.

@ptmt
Copy link
Owner

ptmt commented Feb 21, 2018

Yes, this is my intention. The future of this project has 3 possible ways, there is a project with implementing cross-platform React Native based on Qt, there is the Microsoft team working on new modular architecture for React Native, and there is Apple supposedly working on "rescuing the market of desktop macOS apps". We might finally have a superset of UIKit and AppKit or something like this.
Meantime I almost finished latest merging and it's been really exhausting, so it's not probably the right way how to do it. Even if Apple doesn't show anything, I'll spend some time on the new architecture.

@Kudo
Copy link
Contributor

Kudo commented May 4, 2018

Updated rumor https://daringfireball.net/2018/04/scuttlebutt_regarding_ui_project.
Declarative UI ! hope it's not only human readable storyboard & xib.

BTW, I was previously working on a new solution to port React Native into macOS.
As current react-native-macos's model is fork and modify code directly, and React Native upstream is actively development.
It would be a disaster to follow upstream.

I was proposing a layer called RCTXUIKit which is somewhat Chameleon did.
I tried to use ObjC category or inheritance to make AppKit's interface compatible with UIKit.
From React Native perspective,

  1. Only to import RCTXUIKit.h for most of code.
  2. Adding macOS support into React.xcodeproj, pretty like tvOS did.

This model should be maintainable with upstream, more than that I also hope if it could be merged into upstream.
My current status is in early stage which still in fixing build break.
I have no experience for macOS development still not sure if this model will works.
Do you have any thought for this proposal?

@ptmt
Copy link
Owner

ptmt commented May 4, 2018

Declarative UI ! hope it's not only human readable storyboard & xib.

Read that too, very exciting news! I'm constantly playing with different libraries and languages, trying to understand that could be the future of desktop cross-platform UI framework. Really keen to learn what Apple's answer.

I was proposing a layer called RCTXUIKit which is somewhat Chameleon did.

There are certainly ways to improve this, discussions around it distributed across several threads and pull requests here. I've been waiting for "Marzipan" to decide on this, but we didn't get it last year ("UXKit") and we may not get it this year too. And of course hoping that it will solve all problems is too naive. The approach with RCTXUIKit will require changes in react-native codebase, which is not something we could afford right now, unless I'm missing something.

Adding macOS support into React.xcodeproj, pretty like tvOS did.

I'm a bit pessimistic about this, so looking into ways not to touch react-native codebase at all. I don't want to introduce any new complexity to their codebase, since it's already quite a monolith-like project. But I'm not the one who decides on the future of macOS fork, it's open source, plus there are multiple teams and multiple projects around this, someone will solve that problem. I will welcome any effort and any attempt, e.g. we can move this repo to a dedicated organisation namespace, I can give to everyone who's interested necessary permissions if you want.

@keplersj
Copy link

keplersj commented Jun 9, 2018

You all might be interested in this post-WWDC experiment done with React Native and UIKit for Mac (Marzipan): notjosh/Marzipants, and this GitHub issue: facebook/react-native#19559.

@Kudo
Copy link
Contributor

Kudo commented Jun 11, 2018

Awesome @keplersj !
It's so surprising that the POC works without patching much code.

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

No branches or pull requests

6 participants