3 ms·
Also when you write an app for iOS you have most of the code to target watchOS, iPadOS, macOS, tvOS, realityOS etc. For an app like Shopify where users often w
by threeseed 4y ago
Also when you write an app for iOS you have most of the code to target watchOS, iPadOS, macOS, tvOS, realityOS etc.
For an app like Shopify where users often want to see revenue, sales etc in different environments using React Native seems a bit short-sighted to me.
I would've just use Djinni [1], kept most of the core code in C++ and then build native apps. Approach that Dropbox, Snapchat etc. took and seems to work.
[1] http://djinni.xlcpp.dev http://djinni.xlcpp.dev
- deleted 4y ago[deleted]
- booi 4y agoThis probably works if a lot of your core code is not UI or presentation (dropbox sync, snapchat video filters). My guess is the shopify app is almost all presentation and their backend handles most of the heavy lifting and writing that in C++ is... not ideal
- booi 4y agoThis probably works if a lot of your core code is not UI or presentation (dropbox sync, snapchat video filters). My guess is the shopify app is almost all presentation and their backend handles most of the heavy lifting and writing presentation in C++ is... not ideal
- threeseed 4y agoYou wouldn't write the presentation layer in C++. It would be for all of your domain models, business logic and backend integration code. You could even have Djinni generate the server side models as well.
- Eric_WVGG 4y agoThat's what really puzzled me about 1Password's switch from native Mac to Electron. The reason was, "we want code sharing with Windows". Okay, you've got that now… it's terrible… but you're also maintaining a SwiftUI app for iOS and iPadOS. Why not code share that with Mac?
- lucasyvas 4y agoMy guess is they'd maybe prefer the majority of their investment be in cross platform technology?
- Eric_WVGG 4y agoBut code-sharing between MacOS and iOS is also investment in cross platform technology. They're _already_ managing two code bases, why does Mac have to be on the shitty one?