Giter Site home page Giter Site logo

Comments (2)

shiftkey avatar shiftkey commented on June 25, 2024

I'm honestly not sure how React Native handles native Node modules, and a quick skim of some resources didn't really help me to understand further.

If someone knows how to do it, I'd love to hear more and see what's possible.

from node-keytar.

shiftkey avatar shiftkey commented on June 25, 2024

@jg123 I'm going to close this out as I don't believe I can support this in keytar for a few reasons:

  • the examples for iOS and Android are written in Java and ObjectiveC, which are different to the plain C++ we have currently in the project
  • we leverage nan in a lot of places to make cross-platform support consistent, but it looks like native modules in React Native requires handrolling a lot of platform-specific code for interop
  • the toolchain for supporting this is very different to what we support in keytar - instead of using node-gyp and a binding.gyp, you need to setup Gradle and XCode projects to build for each platform
  • this isn't an area I'm familiar with, and don't have bandwidth to skill up on in the near future

If someone however wants to take a shot at this to see if they can get something working, go for it. But I don't think we can leverage much of what's in here to target React Native, which seems to be where the initial question was heading.

from node-keytar.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.