Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TouchId Custom ? (Title,Message) #65

Closed
Toshihiro2010 opened this issue Feb 15, 2019 · 3 comments
Closed

TouchId Custom ? (Title,Message) #65

Toshihiro2010 opened this issue Feb 15, 2019 · 3 comments

Comments

@Toshihiro2010
Copy link

i want chang title and message for TouchID.

Thank you.

@jeremy-farnault
Copy link
Contributor

Hi,

The touchIDSentence property is available to change the message.
I've added a touchIDTitle property in v1.13.0 for the title but please note that it's only working on Android (https://github.com/naoufal/react-native-touch-id#authenticatereason-config).

Cheers,
Jeremy

@ajulien42
Copy link

Just proposing, may be you should just pass a full object as "touchIdProps" that match react-native-touch-id optionnalConfig Object: {
title: 'Authentication Required', // Android
imageColor: '#e00606', // Android
imageErrorColor: '#ff0000', // Android
sensorDescription: 'Touch sensor', // Android
sensorErrorDescription: 'Failed', // Android
cancelText: 'Cancel', // Android
fallbackLabel: 'Show Passcode', // iOS (if empty, then label is hidden)
unifiedErrors: false, // use unified error messages (default false)
passcodeFallback: false, // iOS
};
Your component is great but it already has a lot of props, and maybe tomorrow someone will ask to change the touchIdIconColor etc...

@jeremy-farnault
Copy link
Contributor

Hi @ajulien42

You're right. I'll change it next time I have to add a prop :D

Cheers,
Jeremy

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants