mirror of
https://github.com/BlueWallet/BlueWallet.git
synced 2024-11-19 18:00:17 +01:00
6f581a2f2e
* OPS: randombytes work * OPS: porting to RN android: added prompt, refactoring * OPS: better android prompt * FIX: scan qr callback * FIX: correct fee sat calculation for HD & classic segwit wallets * FIX: Fixed height for button in empty transaction list * FIX: keyboard issue on fee selection modal * FIX: slow QR code generation for HD backup screen * ADD: wallet reorder * FIX: TypeError: undefined is not an object (evaluating 'recommendedFees.halfHourFee') #133 * FIX: android appstore link * OPS: Code to Migrate Expo json * REF: renamed blitzhub to lndhub * OPS: Migration: move expo files instead of parsing * FIX: lndhub uri usage * FIX: no security alert on android (it was ios specific) * REF: better tx list rendering and sorting * ADD: verify tx on coinb.in * FIX: Tap to dismiss is not working #137 * REF: Removed Wallet gradients duplication. * REF: about screen * FIX: bech32 qr scan in send screen * FIX: better bip21 handling * Use of dayjs for transaction details * REF: QR code content follows BIP21 * ADD: fee in local currency when send * FIX: Refresh wallet info on page focus
38 lines
903 B
JavaScript
38 lines
903 B
JavaScript
import prompt from 'react-native-prompt-android';
|
|
|
|
module.exports = (title, text, isCancelable = true) => {
|
|
return new Promise((resolve, reject) => {
|
|
const buttons = isCancelable
|
|
? [
|
|
{
|
|
text: 'Cancel',
|
|
onPress: () => {
|
|
reject(Error('Cancel Pressed'));
|
|
},
|
|
style: 'cancel',
|
|
},
|
|
{
|
|
text: 'OK',
|
|
onPress: password => {
|
|
console.log('OK Pressed, password: ' + password);
|
|
resolve(password);
|
|
},
|
|
},
|
|
]
|
|
: [
|
|
{
|
|
text: 'OK',
|
|
onPress: password => {
|
|
console.log('OK Pressed, password: ' + password);
|
|
resolve(password);
|
|
},
|
|
},
|
|
];
|
|
|
|
prompt(title, text, buttons, {
|
|
type: 'secure-text',
|
|
cancelable: isCancelable,
|
|
});
|
|
});
|
|
};
|