3 ms·
I have seen this question before on HN and I think my previous response seems to be relevant to this and should help the OP. This ultimately depends on your si
by rvz 7y ago
I have seen this question before on HN and I think my previous response seems to be relevant to this and should help the OP.
This ultimately depends on your situation. I would have said Flutter since it is past 1.0 and RN is still in beta. But my main problem here is that you will quickly run into difficulty in attempting to use C/C++ libraries in Dart.
Dart has beta support for native FFI but it is not stable unlike RN. Right now, they instead have 'Platform Channels' which has a significant overhead when passing messages back and forth compared to a native FFI. The issue is still open on Github: https://github.com/flutter/flutter/issues/7053 https://github.com/flutter/flutter/issues/7053
I can reuse and port my JavaScript/TypeScript projects into mobile very quickly thanks to React Native. Flutter on the other hand, requires learning Dart which depending on your use-case makes sense if it is a new project, not so if you have invested in JavaScript.
Perhaps once Dart gains a production-level C/C++ FFI, then I can seriously look at both Dart and Flutter again.
- clumsysmurf 7y ago> The issue is still open on Github: https://github.com/flutter/flutter/issues/7053 https://github.com/flutter/flutter/issues/7053 The last message in that thread mentions dart:ffi is in preview.
- pjmlp 7y agoIt is, and looks like a toy versus what P/Invoke is capable of.
- mrpickels 7y agoit's so.hard(to () => { learn.a.new * language; they.are(all + sooo different) }