|
1 | 1 | import * as React from 'react'; |
2 | 2 | import { ScrollView, StyleSheet, Switch, Text, View } from 'react-native'; |
3 | 3 | import { inject, observer } from 'mobx-react'; |
4 | | -import { Button, Header, Icon } from 'react-native-elements'; |
| 4 | +import { Header, Icon } from 'react-native-elements'; |
5 | 5 |
|
6 | 6 | import { Amount } from './../components/Amount'; |
| 7 | +import Button from './../components/Button'; |
7 | 8 | import HopPicker from './../components/HopPicker'; |
8 | 9 | import KeyValue from './../components/KeyValue'; |
9 | 10 | import LoadingIndicator from './../components/LoadingIndicator'; |
@@ -367,21 +368,40 @@ export default class PaymentRequest extends React.Component< |
367 | 368 | 'views.PaymentRequest.amp' |
368 | 369 | )} |
369 | 370 | </Text> |
370 | | - <Switch |
371 | | - value={enableAmp} |
372 | | - onValueChange={() => |
373 | | - this.setState({ |
374 | | - enableAtomicMultiPathPayment: |
375 | | - !enableAtomicMultiPathPayment |
376 | | - }) |
377 | | - } |
378 | | - trackColor={{ |
379 | | - false: '#767577', |
380 | | - true: themeColor('highlight'), |
381 | | - alignSelf: 'flex-end' |
| 371 | + <View |
| 372 | + style={{ |
| 373 | + flex: 1, |
| 374 | + flexDirection: 'row', |
| 375 | + justifyContent: 'flex-end' |
382 | 376 | }} |
383 | | - disabled={lockAtomicMultiPathPayment} |
384 | | - /> |
| 377 | + > |
| 378 | + <View |
| 379 | + style={{ |
| 380 | + flex: 1, |
| 381 | + flexDirection: 'row', |
| 382 | + justifyContent: 'flex-end' |
| 383 | + }} |
| 384 | + > |
| 385 | + <Switch |
| 386 | + value={enableAmp} |
| 387 | + onValueChange={() => |
| 388 | + this.setState({ |
| 389 | + enableAtomicMultiPathPayment: |
| 390 | + !enableAtomicMultiPathPayment |
| 391 | + }) |
| 392 | + } |
| 393 | + trackColor={{ |
| 394 | + false: '#767577', |
| 395 | + true: themeColor( |
| 396 | + 'highlight' |
| 397 | + ) |
| 398 | + }} |
| 399 | + disabled={ |
| 400 | + lockAtomicMultiPathPayment |
| 401 | + } |
| 402 | + /> |
| 403 | + </View> |
| 404 | + </View> |
385 | 405 | </React.Fragment> |
386 | 406 | )} |
387 | 407 |
|
@@ -516,10 +536,6 @@ export default class PaymentRequest extends React.Component< |
516 | 536 | 'SendingLightning' |
517 | 537 | ); |
518 | 538 | }} |
519 | | - buttonStyle={{ |
520 | | - backgroundColor: 'orange', |
521 | | - borderRadius: 30 |
522 | | - }} |
523 | 539 | /> |
524 | 540 | </View> |
525 | 541 | )} |
|
0 commit comments