top | item 22421375

(no title)

joshfarrant | 6 years ago

I’d love to see some work put in to making this work with React Native. I spent a day trying to get this to work a few weeks ago with no joy, and I couldn’t find any indication that anyone else had managed to make it work either.

discuss

order

akdor1154|6 years ago

But why? Aren't your users gonna be far better off if you used native git?

Sorry, I know this comes off as a bit dickish, but I'm interested to know the circumstances that lead to this point of view :)

joshfarrant|6 years ago

My particular use-case is that I'm not a Swift/Objective-C developer, I'm a JavaScript developer.

React Native opened the door to allow me to build apps and, realistically, I'm not going to spend the time battling through trying to get native git working through React Native. If there's a native developer out there that wants to tackle this problem and wrap it up in a nice JS module then I'd be in your debt!

yatsyk|6 years ago

More or less same arguments as for choosing React Native for any other project: share some or all code on web/android/ios platforms.

The other option could be compiling libgit2 to native code/wasm and use it in RN and web, but it will be harder then just import js-only npm.

Already__Taken|6 years ago

Depends what users, if you're targeting some education format or institution that wants some locking down of their OS git native is kind of a non starter. No one can configure it for you, there's 65 million install options and you're loading a bash shell into windows.

Very different from "this app has packaged tutorials and tools just start at lesson 1"