Binding for React Native
Opened this issue ยท 7 comments
Hello,
Thank you for your amazing work on this SDK! ๐
I'm working on a non-profit and open source initiative to provide an alternative contact tracing application for France, based on DP-3T.
We would like to adapt your demo app, but we don't have iOS/Android developers available at the moment. But we have React ones (I am), so we are looking for a React native binding.
Do you have plan for that?
I found this: https://github.com/wix-incubator/react-native-dp3t
But it is not very active.
It is probably not a DP-3T core team priority, but if there are other people asking the same question, maybe we could work together :)
Original Tweet about that https://twitter.com/jdesboeufs/status/1252876654189309952
Hi,
I am giving it a shot here: https://github.com/fmauquie/react-native-dp3t-sdk
It is not ready at all (and not published on NPM), but the example app compiles and starts.
I intend to implement basic functionality in the example app to give an example and test the bindings.
@fmauquie It's great!
Tell us if you need help!
@jdesboeufs actually we started wrapping this lib for RN as well, you can find it here, but we found that the business-logic & encryption are very coupled with the library, and we would like to adjust them for our need, so it will be difficult to work with this SDK, I wrote about this in this issue
We decided to build our own RN library, which will be a bit more modular, you can find it here, feel free to contact me if you need help.
Thank you @ButtersHub,
But it's very important for us to rely on the DP-3T SDK.
@fmauquie Have you noticed the issue reported by @ButtersHub ?
I like the "turnkey" approach of this repo, it allows app writers to "just plug the lib and go". APIs from both platforms are also relatively in sync and easy to grasp. There are multiple aspects to DP3T that I really don't want to be tackling (data security, crypto, sync, risk scoring, authโฆ) so having an integrated solution is great.
I also understand the concerns raised by @ButtersHub : even as I implement the bindings, some design decisions in the SDK make it difficult when working with RN because of different behaviors between RN and other native apps (this is less of a problem with the Android SDK because Android is kind of lax with regard to object privacy). However the team is responsive in the PRs, so the SDK can adapt.
I also think that having another implementation is always good. I have embedded a link in my readme pointing to Wix's implementation. I haven't looked into it in detail, but I certainly will.
We currently do not provide any bindings for RN. Feel free to send a pull-request.