Comments (17)
Had this problem, was solved by running
react-native link
react-native run-ios # or run-android
from react-native-keychain.
this error goes away after a clean rebuild: rm -rf ios/build && react-native run-ios
from react-native-keychain.
The only thing that helped me is rebuilding project via Android Studio's Build -> Rebuild project menu item.
from react-native-keychain.
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.
@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.
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.
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.
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.
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.
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.
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
runnpm 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.
@wmak ,Thanks for the replay, I had tried all these steps, But getting same error
from react-native-keychain.
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
andrnpm 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 usingnpm run ios
whereios
isreact-native-scripts ios
instead of usingreact-native run-ios
...none of the above i did helped....
I don't know if the issue happens because i didn't useindex.ios.js
as my entry file... hope someone finds the solution.
from react-native-keychain.
hello, please check my first comment, especially the part about manual installation (try to install manually)
from react-native-keychain.
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.
@wmak Yup, closing 👍
from react-native-keychain.
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)
- How to store my password keychain in Android keystore using react-native-keychain
- Encrypt and decrypt failing on latest Samsung OS HOT 11
- Warning when using SetGenericPassword with service HOT 2
- No podspec found for `RNKeychain`
- Fingerprint Bypass using Frida and Objection techniques HOT 1
- Using it together with native iOS project HOT 2
- Android crash from adding react-native-keychain package HOT 1
- Unrecognized platform name visionOS error HOT 8
- iOS & android keychain items are not erased when the app is uninstalled HOT 1
- Pods install failed with Invalid `RNKeychain.podspec` file: undefined method `visionos' for #<Pod::Specification name="RNKeychain" HOT 5
- App crash on launch - Only happens on Huawei devices
- Replace `SharedPreferences` with `DataStore` Preferences on Android HOT 2
- Cold start on android took 5-10 seconds longer than before the library update HOT 11
- Example project not building iOS HOT 3
- [RN-Android]: Not able to retrieve credentials from App B after storing credentials from App A. HOT 1
- Android build failed after upgrading to java 21
- Issue building app 8.1.2, 8.1.2 and 8.2.0 HOT 1
- Understanding the key store access life cycle.
- [Enhancement] Support for Passkey
- UI animation freezing when calling any `set` functions in Android HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from react-native-keychain.