Giter Site home page Giter Site logo

Comments (5)

mikehhhhhhh avatar mikehhhhhhh commented on July 22, 2024

Ok, I updated the import method to match the new format like ;

import * as Keychain from 'react-native-keychain'

Now I'm faced with a new error

{ [TypeError: undefined is not an object (evaluating 'RNKeychainManager.getGenericPasswordForOptions')]
  line: 103336,
  column: 27,
  sourceURL: 'http://localhost:8081/index.ios.bundle?platform=ios&dev=true&minify=false' }

from react-native-keychain.

oblador avatar oblador commented on July 22, 2024

Hey, it sounds like the library is no longer linked. Perhaps you ran react-native upgrade and overwrote the xcodeproj file? Try re-linking!

from react-native-keychain.

oblador avatar oblador commented on July 22, 2024

Closing due to inactivity.

from react-native-keychain.

zoolle avatar zoolle commented on July 22, 2024

I am facing the same error undefined is not an object (evaluating 'RNKeychainManager.getGenericPasswordForOptions') where it is pointing to getGenericPassword line 175 return RNKeychainManager.getGenericPasswordForOptions.

here is the function where I call it

exports.createJob = (text) => { return function(dispatch) { return Keychain.getGenericPassword().then((credentials) => { var {username, password} = credentials; return axios.post(JOBS_URL(username), {text}, { headers: {authorization: password} }).then((response) => { dispatch(addJob(response.data.job)); }).catch((err) => { dispatch(addAlert("Couldn't create job.")); }) }) } }

from react-native-keychain.

vonovak avatar vonovak commented on July 22, 2024

@zoolle please make sure the module is linked. Follow manual instructions in the readme if necessary and do not link through cocoapods.

from react-native-keychain.

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.