mirror of
https://github.com/BlueWallet/BlueWallet.git
synced 2025-02-23 23:27:26 +01:00
21 lines
414 B
JavaScript
21 lines
414 B
JavaScript
|
import { AlertIOS } from 'react-native';
|
||
|
|
||
|
module.exports = function(title, text) {
|
||
|
return new Promise(function(resolve, reject) {
|
||
|
AlertIOS.prompt(
|
||
|
title,
|
||
|
text,
|
||
|
[
|
||
|
{
|
||
|
text: 'OK',
|
||
|
onPress: password => {
|
||
|
console.log('OK Pressed, password: ' + password);
|
||
|
resolve(password);
|
||
|
},
|
||
|
},
|
||
|
],
|
||
|
'secure-text',
|
||
|
);
|
||
|
});
|
||
|
};
|