TypeError: Cannot read property 'setGenericPasswordForOptions' of undefined

See original GitHub issue

I use Keychain as basic example:

      Keychain
      .setGenericPassword('myUserName', 'myPassword')
      .then(() => {
        console.log('Credentials saved successfully!');
      });

but this error happens:

screen shot 2017-03-09 at 22 13 24 Do you have any idea why ?

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Reactions:16
  • Comments:16 (2 by maintainers)

github_iconTop GitHub Comments

5reactions
wmakcommented, Jul 21, 2017

Had this problem, was solved by running

react-native link
react-native run-ios # or run-android

read more here

2reactions
ttaranovcommented, Oct 24, 2017

this error goes away after a clean rebuild: rm -rf ios/build && react-native run-ios

Read more comments on GitHub >

github_iconTop Results From Across the Web

Cannot read properties of undefined (reading 'name') in React ...
i am getting the below error TypeError: Cannot ...
Read more >
react-native-keychain - npm
Will retrieve all known service names for which a generic password has been stored (e.g., setGenericPassword ). Note: on iOS this will actully ......
Read more >
unhandled promise rejection: typeerror: undefined is not an ...
How do you resolve "Unhandled rejection (typeerror): cannot read property 'temp' of undefined" (reactjs, react hooks, openweathermap, weather, development)?.
Read more >
Fix "Cannot read properties of undefined" error #shorts
Sometimes in Javascript you might have an array of objects like this and you to need to get some of the properties of...
Read more >
ERROR TypeError: Cannot read property title of undefined
HEY, SET YOUR LIKE THERE ! ... Your browser can't play this video. ... Solved: ERROR TypeError : Cannot read property title of...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found