naoufal / react-native-touch-id

React Native authentication with the native Touch ID popup.

Home Page:https://www.npmjs.com/package/react-native-touch-id

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

CUSTOM DIALOG

dinhnhanfpt opened this issue · comments

HI AD. How to custom dialog confirm touch ID and faceID?, current I can't change color's title on dialog and AuthenticateConfig doesn't support it.

@dinhnhanfpt do you got the solution? help me if you got the way.

You can use
const optionalConfigObject = { title: 'Authentication Required', imageColor: 'red' }; return TouchID.authenticate('to demo this react-native component', optionalConfigObject)
and you'll be able cu modify set of properties(Android only).
For example: title, imageColor, imageErrorColor, sensorDescription, sensorErrorDescription, cancelText, etc.

I need to change bg color for android and also text colors