-
Notifications
You must be signed in to change notification settings - Fork 169
Display Touch ID dialog on Android (if supported) #1312
base: master
Are you sure you want to change the base?
Changes from 1 commit
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -37,6 +37,9 @@ class PinView extends React.Component { | |
|
||
render() { | ||
const { store, auth } = this.props; | ||
const unlockText = this.props.auth.checkFingerprintHardwareAndEnrollment() | ||
? 'Unlock with your pin or fingerprint' | ||
: 'Unlock with your pin'; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. May I suggest using the Android's native https://medium.com/exploring-android/exploring-android-p-fingerprint-dialog-fa672ae62c6f There are react-native modules that seem to offer some type of dialog UI for Android as well: https://github.com/jariz/react-native-fingerprint-android But those seems to be full fledged replacements for the https://docs.expo.io/versions/latest/sdk/local-authentication/ There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. It looks like |
||
return ( | ||
<Background image="purple-gradient-bg"> | ||
<MainContent style={styles.content}> | ||
|
@@ -47,7 +50,7 @@ class PinView extends React.Component { | |
<LightningWord height={31.2} width={245.7} /> | ||
</View> | ||
<FormStretcher> | ||
<Text>Unlock with your pin</Text> | ||
<Text>{unlockText}</Text> | ||
<PinBubbles pin={store.auth.pin} style={styles.bubbles} /> | ||
</FormStretcher> | ||
<PinKeyboard | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice refactor 👍