naoufal / react-native-touch-id

React Native authentication with the native Touch ID popup.
https://www.npmjs.com/package/react-native-touch-id
1.47k stars 476 forks source link

CUSTOM DIALOG #248

Open dinhnhanfpt opened 5 years ago

dinhnhanfpt commented 5 years ago

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.

saikiran-sankey-zz commented 4 years ago

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

cretumarius commented 4 years ago

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.

NetPumi2 commented 4 years ago

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