FIX: Fixed total dismiss of create tx screen.

This commit is contained in:
Marcos Rodriguez Vélez 2019-01-25 16:01:51 -05:00
parent df61a5f211
commit baad2c7348
4 changed files with 6 additions and 4 deletions

View file

@ -236,6 +236,7 @@ export default class ScanLndInvoice extends React.Component {
<Text style={{ color: '#81868e', fontSize: 12, left: 20, top: 10 }}>Expires in: {this.state.expiresIn}</Text>
)}
<BlueSpacing20 />
<BlueSpacing20 />
{this.state.isLoading ? (
<View>
<ActivityIndicator />

View file

@ -82,7 +82,6 @@ export default class SendDetails extends Component {
}
processAddressData = data => {
this.props.navigation.goBack(null);
this.setState(
{ isLoading: true },
() => {

View file

@ -32,6 +32,10 @@ export default class CameraExample extends React.Component {
Permissions.request('camera').then(response => {
// Response is one of: 'authorized', 'denied', 'restricted', or 'undetermined'
this.setState({ hasCameraPermission: response === 'authorized' });
if (response !== 'authorized') {
alert('BlueWallet does not have permission to use your camera.');
this.props.navigation.goBack(null);
}
});
}
@ -48,8 +52,6 @@ export default class CameraExample extends React.Component {
if (hasCameraPermission === null) {
return <View />;
} else if (hasCameraPermission === false) {
alert('BlueWallet does not have permission to use your camera.');
this.props.navigation.goBack(null);
return <View />;
} else {
return (

View file

@ -366,7 +366,7 @@ export default class WalletTransactions extends Component {
{(() => {
if (this.state.showManageFundsSmallButton) {
return (
<View style={{ flex: 1, justifyContent: 'space-between', minHeight: 40, alignContent: 'center', flexDirection: 'row' }}>
<View style={{ justifyContent: 'space-between', alignContent: 'center', flexDirection: 'row', marginVertical: 8 }}>
<TouchableOpacity
style={{ left: 10, flexDirection: 'row', flex: 1, alignItems: 'center' }}
onPress={() => {