React-native-keychain: Got error TypeError: undefined is not an object (evaluating 'RNKeychainManager.setGenericPasswordForService'

Created on 16 Feb 2016  路  5Comments  路  Source: oblador/react-native-keychain

Got the error when calling Keychain.setGenericPassword()

Most helpful comment

@latish I figured out my issue right after I commented. It seems that I simply missed the step "react-native link". This solved it for me. Thank you though!

All 5 comments

You most likely didn't integrate the objc parts into your project, check the readme.

@johnnynanjiang did you ever figure this out? I am running into the same issue, and have double checked that the objc parts are integrated correctly (used rnpm to begin with).

@Mjuk-Biltvatt I think I was getting the error when I was passing in the optional service argument. I only pass 2 arguments now, and seems to work.

@latish I figured out my issue right after I commented. It seems that I simply missed the step "react-native link". This solved it for me. Thank you though!

Issue command react-native link and re-run with react-native run-android or react-native run-ios

Was this page helpful?
0 / 5 - 0 ratings

Related issues

webforuse picture webforuse  路  5Comments

ulfgebhardt picture ulfgebhardt  路  5Comments

waseemshahwan picture waseemshahwan  路  3Comments

pani7 picture pani7  路  5Comments

retailos picture retailos  路  4Comments