diff --git a/screen/lnd/browser.js b/screen/lnd/browser.js index c8d1ea1a8..72f72bda3 100644 --- a/screen/lnd/browser.js +++ b/screen/lnd/browser.js @@ -1,10 +1,11 @@ import React, { Component } from 'react'; -import { View, Alert } from 'react-native'; +import { View, Alert, Dimensions } from 'react-native'; import { WebView } from 'react-native-webview'; import { BlueNavigationStyle } from '../../BlueComponents'; import { FormInput } from 'react-native-elements'; import Ionicons from 'react-native-vector-icons/Ionicons'; import PropTypes from 'prop-types'; +const { width } = Dimensions.get('window'); export default class Browser extends Component { static navigationOptions = ({ navigation }) => ({ @@ -15,6 +16,8 @@ export default class Browser extends Component { constructor(props) { super(props); + if (!props.navigation.getParam('fromSecret')) throw new Error('Invalid param'); + this.state = { url: '' }; } @@ -31,16 +34,15 @@ export default class Browser extends Component { style={{ color: 'red', backgroundColor: 'transparent', - minWidth:36, - paddingLeft:10, left: 8, top: 1, }} /> { console.log('navigating to', this.state.wallet.getLabel()); - navigate('ManageFunds', { fromSecret: this.state.wallet.getSecret() }); + navigate('ManageFunds', { fromWallet: this.state.wallet }); }} > {loc.lnd.title}