mirror of
https://github.com/BlueWallet/BlueWallet.git
synced 2024-11-19 18:00:17 +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',
|
|
);
|
|
});
|
|
};
|