Comments (26)
On a fresh install I have this same issue. For my use case I do not want to use any of the other features. I just need a clean way of accepting a pin from a user.
The flow I am trying to accomplish is like this,
The first time a user uses the application -
- User enters a pin.
- User verifies the pin a second time.
- I never store the pin on the phone and instead I encrypt some data in the mobile app with the pin.
The next time the user uses the mobile app I request their pin to decrypt their saved data -
- Once the user's data is decrypted, they have access to use the mobile application as a logged in user.
On a fresh install, I see the error mentioned above,
Cannot read property 'SECURITY_LEVEL_ANY' of undefined
Example of usage,
npm install --save @haskkor/react-native-pincode
import PINCode from '@haskkor/react-native-pincode';
class Auth extends Component {
render() {
return (
<Container style={styles.container}>
<PINCode
status="choose"
finishProcess={async () => {
this.props.navigation.navigate('someNewPage');
}}
maxAttempts={5}
pinCodeVisible={true}
storePin={pin => this._HandleStoredPin(pin)}
/>
</Container>
);
}
}
from react-native-pincode.
Have you guys tried running the following commands?
yarn add react-native-keychain
cd ios
pod install
from react-native-pincode.
@Haskkor this is because this package is requiring react-native-keychain@^3.0.0-rc.3
, I created PR #72 locking the version to the last stable version.
from react-native-pincode.
I at last experienced this issue when upgrading keychain to 5.0.1.
However following this: oblador/react-native-keychain#221
And then the instructions on keychain:
Run yarn add react-native-keychain
1 a. Only for React Native <= 0.59: $ react-native link react-native-keychain and check MainApplication.java to verify the package was added. See manual installation below if you have issues with react-native link.
it fixed itself.
I don't know what else can cause this.
from react-native-pincode.
I've got same issue
from react-native-pincode.
Hi there,
I can't reproduce it. Did you link the libraries etc?
Cheers,
Jeremy
from react-native-pincode.
Well, I've just reinstalled that today and its working, at monday I did it several times and it didnt work. Now working just fine.
from react-native-pincode.
Thanks for the feedback.
I'll leave this open and keep on investigating.
Cheers,
Jeremy
from react-native-pincode.
@Haskkor try without permissions for fingerprint I think that fixed it in my case.
from react-native-pincode.
Hey,
I'm so sorry to read that as I can't reproduce. Could any of you try to use a previous version (1.12.2 might be a good one) and tell me if it fixes the issue? If so, I'll rollback the changes and keep on investigating.
Thanks,
Jeremy
from react-native-pincode.
I installed it today and facing the same issue.
Once, I import the package I am getting this issue.
import PINCode from '@haskkor/react-native-pincode'
from react-native-pincode.
Thanks for that.
It's merged. Help it'll fix it for you all.
from react-native-pincode.
I have same error. can anyone help me to fix it ?
from react-native-pincode.
I have the same error. can anyone help me to fix it?
It is weird since dependency was locked on the PR I opened.
- May you have a
package-lock.json
or ayarn.lock
that may be still downloading the buggy version? - Did you upgrade to latest version of
react-native-pincode
?
from react-native-pincode.
I have same issue for new version of react-native-pincode
from react-native-pincode.
I have the same issue in v1.21.1
react-native - v0.59.9
from react-native-pincode.
I am getting same is in 0.61.0, But it was working fine in the same version yesterday, i have did some changes for iOS and reverted them, but still get the issue
from react-native-pincode.
Hi @wuno ,
Have you solved the error?
I am facing the same error.
from react-native-pincode.
Any solution?
from react-native-pincode.
@tskorupka
Is this is working component??
from react-native-pincode.
Hi @akhilsanker
I'm really sorry to hear that you can't make it work. It's working fine for us and it's used by 50+ other repos...
I really don't know why some of you are experiencing this issue...
from react-native-pincode.
Same problem
react-native-keychain 3.1.3
react-native 0.61.5
react-native-pincode 1.21.1 "
Solved
Manual installation of react-native-keychain helped
npm install react-native-keychain
from react-native-pincode.
Same problem..
"react-native-keychain": "^4.0.5",
"react-native": "0.61.5",
I have tried automatic, cocoapods and manual install. iOS is building successfully. But when I import * as Keychain from 'react-native-keychain';
in RN, I am getting null is not an object (evaluating 'RNKeychainManager.SECURITY_LEVEL_ANY')
Please help :)
from react-native-pincode.
It is because last version (1.21.1) did update again the dependency 'react-native-keychain' to 3.1.3.
I solved this problem downgrading this library to version 1.21.0 which uses 'react-native-keychain' v3.0.0
from react-native-pincode.
Is this solution working ok for all of you?
If so I'll downgrade keychain back to v3.0.0 😄
Thanks @EliaFederico
from react-native-pincode.
I had same problem but when i installed react-native-keychain then this problem solved
from react-native-pincode.
Related Issues (20)
- integration with expo LocalAuthentication
- change of subtitle in first entering the PIN
- Ability to adjust the opacity
- console.error : "fontFamily "Material Icons" is not a system font and has not been loaded through Font.loadAsync
- Cannot resolve the path to "@react-native-community/async-storage" package
- async storage community to react native async storage HOT 2
- How to change pinlock title ?
- How to add delete method to my custom delete button
- How do i reset the pin. HOT 1
- how to set pin manually?
- Touch ID title - Usage
- AsyncStorage issue
- callbackErrorTouchId doesn't catch all possible errors.
- callbackErrorTouchId doesn't catch all possible errors.
- Title and Subtitle Font not Applying on ios HOT 2
- Freeze while setting and entering pincode HOT 1
- Clean status of the component after is used successfully HOT 1
- Package dependencies
- Incompatible with Expo HOT 1
- Audit security issues
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-pincode.