Giter Site home page Giter Site logo

Comments (17)

wmak avatar wmak commented on July 22, 2024 5

Had this problem, was solved by running

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

read more here

from react-native-keychain.

ttaranov avatar ttaranov commented on July 22, 2024 2

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

from react-native-keychain.

8of avatar 8of commented on July 22, 2024 1

The only thing that helped me is rebuilding project via Android Studio's Build -> Rebuild project menu item.

from react-native-keychain.

vonovak avatar vonovak commented on July 22, 2024

on what platform do you have the issue? have you tried following the manual installation instructions to check everything's set up properly? are you using the right package version for your RN version? (there was breaking change for in 0.40 I believe)

from react-native-keychain.

MaxMillington avatar MaxMillington commented on July 22, 2024

@leizard Yes I'm getting a similar error after upgrading to the current version in order to accommodate the breaking changes introduced by RN 0.40

from react-native-keychain.

kchasiotis avatar kchasiotis commented on July 22, 2024

Got a similar error. After updating to RN 0.42.3 and restarting the app with the commands

react-native run-android
react-native start --reset-cache

it is working properly. Was it the restart or the update, i don't know.

from react-native-keychain.

danny-does-stuff avatar danny-does-stuff commented on July 22, 2024

I had a similar error, but it was fixed when I restarted using react-native run-ios. My guess is the simulator didn't understand that the new library was linked.

from react-native-keychain.

driedelreply avatar driedelreply commented on July 22, 2024

having the same problem. Restart and update didn't work.

using:

    "react-native": "0.43.4",
    "react-native-keychain": "^1.2.0",

from react-native-keychain.

amywangcs avatar amywangcs commented on July 22, 2024

Running this version combo:
"react-native": "0.43.2",
"react-native-keychain": "^2.0.0-rc",

But the issue still existing, after running:
react-native link
react-native run-ios

Any tips for a working combo of RN and RNK? Thanks much!

from react-native-keychain.

priya-vr avatar priya-vr commented on July 22, 2024

I am getting same error when calling setGenericPasswordForOptions,My RN version is

             "react-native": "0.46.4",
	"react-native-keychain": "2.0.0-rc",

But the issue still existing, after running:
react-native link
react-native run-ios.Please give any tips for solving problem

from react-native-keychain.

wmak avatar wmak commented on July 22, 2024

Unable to test to confirm if this will help, but generally my debug process would be to:

  • Kill anything running (the window that run-ios opens, the simulator etc.)
  • Delete node_modules run npm install again
  • Create a new RN project and copy code over and try again
  • Update to newest react-native version (don't forget that if you do this you'll probably want to init your entire project again)
  • Node also caches some stuff in your home directory, if after all of the above it's still not working, it might be worth deleting the cached files and retrying the step all over again.

from react-native-keychain.

priya-vr avatar priya-vr commented on July 22, 2024

@wmak ,Thanks for the replay, I had tried all these steps, But getting same error

from react-native-keychain.

leohliao avatar leohliao commented on July 22, 2024

I am also having the same error.
my RN version is
"react-native": "^0.46.1", "react-native-keychain": "^2.0.0-rc",

  • I linked my files with react-native link and rnpm link react-native-keychain.
  • Went to Xcode to change my keychain settings.
  • I also changed import method to import * as Keychain from 'react-native-keychain';
  • I did reset my cache
    ..... i am using npm run ios where ios is react-native-scripts ios instead of using react-native run-ios
    ...none of the above i did helped....
    I don't know if the issue happens because i didn't use index.ios.js as my entry file... hope someone finds the solution.

from react-native-keychain.

vonovak avatar vonovak commented on July 22, 2024

hello, please check my first comment, especially the part about manual installation (try to install manually)

from react-native-keychain.

wmak avatar wmak commented on July 22, 2024

Hey @oblador. I think this issue should be closed, it seems to be more a config issue on the client end rather than an issue with this library.

from react-native-keychain.

oblador avatar oblador commented on July 22, 2024

@wmak Yup, closing 👍

from react-native-keychain.

GabrielMerigo avatar GabrielMerigo commented on July 22, 2024

I had the same issue... I just deleted node_modules and installed it again :)

yarn -> 1.22.09
---
"react-native": "0.72.7
"react-native-keychain": "^8.1.2"

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.