From 251495ef9d920851f4efb345a41eef5695707316 Mon Sep 17 00:00:00 2001 From: ademcan Date: Fri, 25 Jan 2019 14:08:20 +0100 Subject: [PATCH 1/4] Small UI fixes --- android/app/build.gradle | 2 +- ios/theQRL/Info.plist | 2 +- screens/BackupWallet.js | 2 +- screens/CreateNewWallet.js | 2 +- screens/OpenExistingWallet.js | 4 ++-- screens/SendReceive.js | 17 ++++++++--------- screens/TransactionsHistory.js | 6 +++--- 7 files changed, 17 insertions(+), 18 deletions(-) diff --git a/android/app/build.gradle b/android/app/build.gradle index a8df1d5e..89476fd4 100644 --- a/android/app/build.gradle +++ b/android/app/build.gradle @@ -126,7 +126,7 @@ android { minSdkVersion 23 targetSdkVersion 26 versionCode 1 - versionName "1.0.5" + versionName "1.0.6" ndk { abiFilters "armeabi-v7a", "x86" diff --git a/ios/theQRL/Info.plist b/ios/theQRL/Info.plist index 452944f5..e44e073b 100644 --- a/ios/theQRL/Info.plist +++ b/ios/theQRL/Info.plist @@ -25,7 +25,7 @@ CFBundleSignature ???? CFBundleVersion - 5 + 6 LSRequiresIPhoneOS NSAppTransportSecurity diff --git a/screens/BackupWallet.js b/screens/BackupWallet.js index 4ba9ae36..b8b9a14f 100644 --- a/screens/BackupWallet.js +++ b/screens/BackupWallet.js @@ -100,7 +100,7 @@ export default class BackupWallet extends React.Component { - this.props.navigation.openDrawer()} underlayColor='white'> + this.props.navigation.openDrawer()} underlayColor='#184477'> diff --git a/screens/CreateNewWallet.js b/screens/CreateNewWallet.js index 118a5517..ead2b020 100644 --- a/screens/CreateNewWallet.js +++ b/screens/CreateNewWallet.js @@ -193,7 +193,7 @@ export default class CreateNewWallet extends React.Component { - this.props.navigation.openDrawer()} underlayColor='white'> + this.props.navigation.openDrawer()} underlayColor='#184477'> diff --git a/screens/OpenExistingWallet.js b/screens/OpenExistingWallet.js index b15ada14..e7798a0d 100644 --- a/screens/OpenExistingWallet.js +++ b/screens/OpenExistingWallet.js @@ -15,8 +15,8 @@ export default class OpenExistingWallet extends React.Component { componentDidMount(){ const hexseed = this.props.navigation.getParam('hexseed', 'nohexseed'); if (hexseed == "nohexseed"){ - // this.setState({hexseed: "" }) - this.setState({ hexseed: GLOBALS.hexseed1 }) + this.setState({hexseed: "" }) + // this.setState({ hexseed: GLOBALS.hexseed1 }) } else { this.setState({hexseed: hexseed}) diff --git a/screens/SendReceive.js b/screens/SendReceive.js index ea85e9e4..65cac2fe 100644 --- a/screens/SendReceive.js +++ b/screens/SendReceive.js @@ -28,8 +28,8 @@ export default class SendReceive extends React.Component { componentDidMount() { const recipient = this.props.navigation.getParam('recipient', 'norecipient'); if (recipient == "norecipient"){ - // this.setState({recipient:""}) - this.setState({recipient: GLOBALS.recipient }) + this.setState({recipient:""}) + // this.setState({recipient: GLOBALS.recipient }) } else { this.setState({recipient:recipient}) @@ -214,7 +214,7 @@ export default class SendReceive extends React.Component { - this.props.navigation.openDrawer()} activeOpacity={1}> + this.props.navigation.openDrawer()} underlayColor='#184477'> @@ -222,7 +222,7 @@ export default class SendReceive extends React.Component { - {this.state.walletAddress} + Q{this.state.walletAddress} {this.state.balance} QRL @@ -302,7 +302,7 @@ export default class SendReceive extends React.Component { - this.props.navigation.openDrawer()} underlayColor='white'> + this.props.navigation.openDrawer()} underlayColor='#184477'> @@ -310,8 +310,8 @@ export default class SendReceive extends React.Component { - QRL BALANCE - {this.state.balance} + Q{this.state.walletAddress} + {this.state.balance} QRL @@ -398,8 +398,7 @@ const styles = StyleSheet.create({ paddingTop:15, paddingBottom:15, backgroundColor:'#f33160', - borderWidth: 1, - borderColor: '#fff' + borderWidth: 1 }, SubmitButtonStyleBig: { alignSelf:'center', diff --git a/screens/TransactionsHistory.js b/screens/TransactionsHistory.js index eb91b6f9..8e048b92 100644 --- a/screens/TransactionsHistory.js +++ b/screens/TransactionsHistory.js @@ -166,7 +166,7 @@ export default class Wallet extends React.Component{ - this.props.navigation.openDrawer()} underlayColor='white'> + this.props.navigation.openDrawer()} underlayColor='#184477'> @@ -224,7 +224,7 @@ export default class Wallet extends React.Component{ - this.props.navigation.openDrawer()} underlayColor='white'> + this.props.navigation.openDrawer()} underlayColor='#184477'> @@ -239,7 +239,7 @@ export default class Wallet extends React.Component{ {/* QRL BALANCE */} {/* Q{addressBegin}...{addressEnd} */} - {this.state.walletAddress} + Q{this.state.walletAddress} {this.state.balance / 1000000000 } QRL USD ${ ((this.state.balance / 1000000000 ) * this.state.price).toFixed(2) } From d55aab41f517534456501f2d3d43da5e9867b7c4 Mon Sep 17 00:00:00 2001 From: ademcan Date: Fri, 25 Jan 2019 14:28:39 +0100 Subject: [PATCH 2/4] Small UI fixes --- screens/CreateNewWallet.js | 5 ----- screens/SendReceive.js | 1 - screens/TransactionsHistory.js | 4 +++- 3 files changed, 3 insertions(+), 7 deletions(-) diff --git a/screens/CreateNewWallet.js b/screens/CreateNewWallet.js index ead2b020..d286c2d9 100644 --- a/screens/CreateNewWallet.js +++ b/screens/CreateNewWallet.js @@ -158,11 +158,6 @@ export default class CreateNewWallet extends React.Component { - {rowID < this.state.walletlist.length - 1 ? - - : - undefined - } ); } diff --git a/screens/SendReceive.js b/screens/SendReceive.js index 65cac2fe..6f84e6ea 100644 --- a/screens/SendReceive.js +++ b/screens/SendReceive.js @@ -398,7 +398,6 @@ const styles = StyleSheet.create({ paddingTop:15, paddingBottom:15, backgroundColor:'#f33160', - borderWidth: 1 }, SubmitButtonStyleBig: { alignSelf:'center', diff --git a/screens/TransactionsHistory.js b/screens/TransactionsHistory.js index 8e048b92..6bbc17ee 100644 --- a/screens/TransactionsHistory.js +++ b/screens/TransactionsHistory.js @@ -45,6 +45,8 @@ export default class Wallet extends React.Component{ if (Platform.OS === 'ios'){ IosWallet.refreshWallet(walletindex, (error, walletAddress, otsIndex, balance, keys)=> { this.setState({walletAddress: walletAddress, isLoading:false, updatedDate: new Date(), balance: balance, otsIndex: otsIndex, dataSource: ds.cloneWithRows(JSON.parse(keys)), tx_count: JSON.parse(keys).length}) + + }); } // Android @@ -283,7 +285,7 @@ export default class Wallet extends React.Component{ TRANSACTION HISTORY - {this.state.tx_count == 0 ? + {this.state.tx_count == 0 || this.state.tx_count == undefined ? No Transaction yet : From 48dacd8a17a7a6412265194c5ef54312892b0628 Mon Sep 17 00:00:00 2001 From: ademcan Date: Fri, 25 Jan 2019 15:52:53 +0100 Subject: [PATCH 3/4] Generate new bundle for Android --- .../app/src/main/assets/index.android.bundle | 551 +++++++++--------- .../src/main/assets/index.android.bundle.meta | 2 +- .../resources_images_fund_bg.png | Bin 78292 -> 1074574 bytes .../resources_images_lower_drawer_bg.png | Bin 17561 -> 188175 bytes .../xcshareddata/xcschemes/theQRL.xcscheme | 2 +- 5 files changed, 283 insertions(+), 272 deletions(-) diff --git a/android/app/src/main/assets/index.android.bundle b/android/app/src/main/assets/index.android.bundle index f5f59dd7..11c47b85 100644 --- a/android/app/src/main/assets/index.android.bundle +++ b/android/app/src/main/assets/index.android.bundle @@ -300,7 +300,7 @@ __d(function(e,t,i,n,r){'use strict';var f=t(r[0]);i.exports=function(e,t){fetch __d(function(t,r,o,e,u){'use strict';var c=r(u[0]).SourceCode,i=void 0,l='http://localhost:8081/';o.exports=function(){if(void 0===i){var t=c.scriptURL&&c.scriptURL.match(/^https?:\/\/.*?\//);i=t?t[0]:null}return{url:i||l,bundleLoadedFromServer:null!==i}}},299,[15]); __d(function(e,r,t,n,a){'use strict';var s=r(a[0]),o=r(a[1]).SourceCode,c=void 0;t.exports=function(t){var n,u,i,d,f;return regeneratorRuntime.async(function(p){for(;;)switch(p.prev=p.next){case 0:if(c||(c=e.fetch||r(a[2]).fetch),(n=s()).bundleLoadedFromServer){p.next=4;break}throw new Error('Bundle was not loaded from the packager');case 4:return u=t,o.scriptURL&&(i=!1,u=t.map(function(e){return i||(r=e.file,/^http/.test(r)||!/[\\/]/.test(r))?(i=!0,e):babelHelpers.extends({},e,{file:o.scriptURL});var r})),p.next=8,regeneratorRuntime.awrap(c(n.url+'symbolicate',{method:'POST',body:JSON.stringify({stack:u})}));case 8:return d=p.sent,p.next=11,regeneratorRuntime.awrap(d.json());case 11:return f=p.sent,p.abrupt("return",f.stack);case 13:case"end":return p.stop()}},null,this)}},300,[299,15,72]); __d(function(_,t,E,s,O){'use strict';var R=t(O[0]).__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;E.exports=R.takeSnapshot},301,[39]); -__d(function(e,t,r,a,n){Object.defineProperty(a,"__esModule",{value:!0});var l=t(n[0]),i=babelHelpers.interopRequireDefault(l),o=t(n[1]),u=t(n[2]),s=t(n[3]),p=babelHelpers.interopRequireDefault(s),c=t(n[4]),d=babelHelpers.interopRequireDefault(c),f=t(n[5]),b=babelHelpers.interopRequireDefault(f),g=t(n[6]),h=babelHelpers.interopRequireDefault(g),R=t(n[7]),m=babelHelpers.interopRequireDefault(R),w=t(n[8]),D=babelHelpers.interopRequireDefault(w),H=t(n[9]),T=babelHelpers.interopRequireDefault(H),q=t(n[10]),y=babelHelpers.interopRequireDefault(q),E=t(n[11]),v=babelHelpers.interopRequireDefault(E),C=t(n[12]),L=babelHelpers.interopRequireDefault(C),S=t(n[13]),x=babelHelpers.interopRequireDefault(S),k=t(n[14]),A=babelHelpers.interopRequireDefault(k),I=t(n[15]),P=babelHelpers.interopRequireDefault(I),M=t(n[16]),N=babelHelpers.interopRequireDefault(M),O=t(n[17]),_=babelHelpers.interopRequireDefault(O),W=t(n[18]),U=babelHelpers.interopRequireDefault(W),B=(function(e){function t(e){var r=this;babelHelpers.classCallCheck(this,t);var a=babelHelpers.possibleConstructorReturn(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return a._bootstrapAsync=function(){var e;return regeneratorRuntime.async(function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,regeneratorRuntime.awrap(o.AsyncStorage.getItem('walletcreated'));case 2:e=t.sent,a.props.navigation.navigate(e?'App':'Auth');case 4:case"end":return t.stop()}},null,r)},a._bootstrapAsync(),a}return babelHelpers.inherits(t,e),babelHelpers.createClass(t,[{key:"render",value:function(){return i.default.createElement(o.View,null,i.default.createElement(o.ActivityIndicator,null))}}]),t})(i.default.Component),V=(0,u.DrawerNavigator)({TransactionsHistory:{path:'/',screen:b.default},SendReceive:{path:'/',screen:d.default},BackupWallet:{path:'/',screen:p.default},CreateNewWallet:{path:'/',screen:h.default},TxDetailsView:{path:'/',screen:P.default}},{initialRouteName:'TransactionsHistory',drawerPosition:'left',contentComponent:function(e){return i.default.createElement(o.View,{style:{flex:1,backgroundColor:'#164278',paddingTop:50}},i.default.createElement(o.Image,{style:{height:80,width:80,alignSelf:'center'},resizeMode:o.Image.resizeMode.contain,source:t(n[19])}),i.default.createElement(o.View,{style:{paddingTop:50}},i.default.createElement(u.DrawerItems,e)),i.default.createElement(o.ImageBackground,{source:t(n[20]),style:{flex:1,height:null,width:null}},i.default.createElement(o.View,{style:{paddingLeft:40,paddingTop:50}},i.default.createElement(o.Text,{style:{color:'white',paddingTop:20},onPress:function(){return o.Linking.openURL('https://theqrl.org/')}},"QRL WEBSITE"),i.default.createElement(o.Text,{style:{color:'white',paddingTop:20},onPress:function(){return o.Linking.openURL('https://qrl.foundation/')}},"QRL FOUNDATION"),i.default.createElement(o.Text,{style:{color:'white',paddingTop:20},onPress:function(){return o.Linking.openURL('https://www.reddit.com/r/qrl')}},"REDDIT"),i.default.createElement(o.Text,{style:{color:'white',paddingTop:20},onPress:function(){return o.Linking.openURL('https://discord.gg/jBT6BEp')}},"DISCORD"),i.default.createElement(o.Text,{style:{color:'white',paddingTop:20},onPress:function(){return o.Linking.openURL('mailto:support@theqrl.org')}},"SUPPORT"))))},contentOptions:{labelStyle:{color:'white'}}}),Q=(0,u.StackNavigator)({MainDrawer:{screen:V},ProvideWalletPin:{screen:N.default},OpenExistingWalletModal:{screen:_.default},ConfirmTxModal:{screen:x.default},ScanQrModal:{screen:L.default},ShowQrCodeModal:{screen:U.default}},{mode:'modal',headerMode:'none'}),j=(0,u.StackNavigator)({SignIn:{screen:T.default},CreateWalletTreeHeight:{screen:y.default},CreateWalletHashFunction:{screen:v.default},CreateAdvancedWallet:{screen:A.default},CompleteSetup:{screen:m.default},OpenExistingWallet:{screen:D.default}},{initialRouteName:'SignIn',headerMode:'none'});a.default=(0,u.SwitchNavigator)({AuthLoading:B,App:Q,Auth:j},{initialRouteName:'AuthLoading'})},302,[96,12,303,424,429,466,475,482,680,682,683,685,687,688,692,693,695,696,697,470,698]); +__d(function(e,t,r,a,n){Object.defineProperty(a,"__esModule",{value:!0});var l=t(n[0]),i=babelHelpers.interopRequireDefault(l),o=t(n[1]),u=t(n[2]),s=t(n[3]),p=babelHelpers.interopRequireDefault(s),c=t(n[4]),d=babelHelpers.interopRequireDefault(c),f=t(n[5]),b=babelHelpers.interopRequireDefault(f),g=t(n[6]),h=babelHelpers.interopRequireDefault(g),R=t(n[7]),m=babelHelpers.interopRequireDefault(R),w=t(n[8]),D=babelHelpers.interopRequireDefault(w),H=t(n[9]),T=babelHelpers.interopRequireDefault(H),q=t(n[10]),y=babelHelpers.interopRequireDefault(q),E=t(n[11]),v=babelHelpers.interopRequireDefault(E),C=t(n[12]),L=babelHelpers.interopRequireDefault(C),S=t(n[13]),x=babelHelpers.interopRequireDefault(S),k=t(n[14]),A=babelHelpers.interopRequireDefault(k),I=t(n[15]),P=babelHelpers.interopRequireDefault(I),M=t(n[16]),N=babelHelpers.interopRequireDefault(M),O=t(n[17]),_=babelHelpers.interopRequireDefault(O),W=t(n[18]),U=babelHelpers.interopRequireDefault(W),B=(function(e){function t(e){var r=this;babelHelpers.classCallCheck(this,t);var a=babelHelpers.possibleConstructorReturn(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return a._bootstrapAsync=function(){var e;return regeneratorRuntime.async(function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,regeneratorRuntime.awrap(o.AsyncStorage.getItem('walletcreated'));case 2:e=t.sent,a.props.navigation.navigate(e?'App':'Auth');case 4:case"end":return t.stop()}},null,r)},a._bootstrapAsync(),a}return babelHelpers.inherits(t,e),babelHelpers.createClass(t,[{key:"render",value:function(){return i.default.createElement(o.View,null,i.default.createElement(o.ActivityIndicator,null))}}]),t})(i.default.Component),V=(0,u.DrawerNavigator)({TransactionsHistory:{path:'/',screen:b.default},SendReceive:{path:'/',screen:d.default},BackupWallet:{path:'/',screen:p.default},CreateNewWallet:{path:'/',screen:h.default},TxDetailsView:{path:'/',screen:P.default}},{initialRouteName:'TransactionsHistory',drawerPosition:'left',contentComponent:function(e){return i.default.createElement(o.View,{style:{flex:1,backgroundColor:'#164278',paddingTop:50}},i.default.createElement(o.Image,{style:{height:80,width:80,alignSelf:'center'},resizeMode:o.Image.resizeMode.contain,source:t(n[19])}),i.default.createElement(o.View,{style:{paddingTop:50}},i.default.createElement(u.DrawerItems,e)),i.default.createElement(o.ImageBackground,{source:t(n[20]),style:{flex:1,height:null,width:null}},i.default.createElement(o.View,{style:{paddingLeft:40,paddingTop:50}},i.default.createElement(o.Text,{style:{color:'white',paddingTop:20},onPress:function(){return o.Linking.openURL('https://theqrl.org/')}},"QRL WEBSITE"),i.default.createElement(o.Text,{style:{color:'white',paddingTop:20},onPress:function(){return o.Linking.openURL('https://qrl.foundation/')}},"QRL FOUNDATION"),i.default.createElement(o.Text,{style:{color:'white',paddingTop:20},onPress:function(){return o.Linking.openURL('https://www.reddit.com/r/qrl')}},"REDDIT"),i.default.createElement(o.Text,{style:{color:'white',paddingTop:20},onPress:function(){return o.Linking.openURL('https://discord.gg/jBT6BEp')}},"DISCORD"),i.default.createElement(o.Text,{style:{color:'white',paddingTop:20},onPress:function(){return o.Linking.openURL('mailto:support@theqrl.org')}},"SUPPORT"))))},contentOptions:{labelStyle:{color:'white'}}}),Q=(0,u.StackNavigator)({MainDrawer:{screen:V},ProvideWalletPin:{screen:N.default},OpenExistingWalletModal:{screen:_.default},ConfirmTxModal:{screen:x.default},ScanQrModal:{screen:L.default},ShowQrCodeModal:{screen:U.default}},{mode:'modal',headerMode:'none'}),j=(0,u.StackNavigator)({SignIn:{screen:T.default},CreateWalletTreeHeight:{screen:y.default},CreateWalletHashFunction:{screen:v.default},CreateAdvancedWallet:{screen:A.default},CompleteSetup:{screen:m.default},OpenExistingWallet:{screen:D.default}},{initialRouteName:'SignIn',headerMode:'none'});a.default=(0,u.SwitchNavigator)({AuthLoading:B,App:Q,Auth:j},{initialRouteName:'AuthLoading'})},302,[96,12,303,424,429,477,486,493,691,693,694,696,698,699,703,704,706,707,708,481,709]); __d(function(e,t,a,r,i){a.exports={get createNavigationContainer(){return t(i[0]).default},get StateUtils(){return t(i[1]).default},get getNavigation(){return t(i[2]).default},get createNavigator(){return t(i[3]).default},get createKeyboardAwareNavigator(){return t(i[4]).default},get NavigationProvider(){return t(i[5]).default.NavigationProvider},get NavigationConsumer(){return t(i[5]).default.NavigationConsumer},get createStackNavigator(){return t(i[6]).createStackNavigator},get StackNavigator(){return console.warn('The StackNavigator function name is deprecated, please use createStackNavigator instead'),t(i[6]).createStackNavigator},get createSwitchNavigator(){return t(i[7]).default},get SwitchNavigator(){return console.warn('The SwitchNavigator function name is deprecated, please use createSwitchNavigator instead'),t(i[7]).default},get createDrawerNavigator(){return t(i[8]).createDrawerNavigator},get DrawerNavigator(){return console.warn('The DrawerNavigator function name is deprecated, please use createDrawerNavigator instead'),t(i[8]).createDrawerNavigator},get createTabNavigator(){return console.warn('createTabNavigator is deprecated. Please use the createBottomTabNavigator or createMaterialTopTabNavigator instead.'),t(i[9]).createTabNavigator},get TabNavigator(){return console.warn('TabNavigator is deprecated. Please use the createBottomTabNavigator or createMaterialTopTabNavigator instead.'),t(i[9]).createTabNavigator},get createBottomTabNavigator(){return t(i[10]).createBottomTabNavigator},get createMaterialTopTabNavigator(){return t(i[10]).createMaterialTopTabNavigator},get NavigationActions(){return t(i[11]).default},get StackActions(){return t(i[12]).default},get DrawerActions(){return t(i[8]).DrawerActions},get StackRouter(){return t(i[13]).default},get TabRouter(){return t(i[14]).default},get DrawerRouter(){return t(i[8]).DrawerRouter},get SwitchRouter(){return t(i[15]).default},get createConfigGetter(){return t(i[16]).default},get getScreenForRouteName(){return t(i[17]).default},get validateRouteConfigMap(){return t(i[18]).default},get getActiveChildNavigationOptions(){return t(i[19]).default},get pathUtils(){return t(i[20]).default},get Transitioner(){return t(i[6]).Transitioner},get StackView(){return t(i[6]).StackView},get StackViewCard(){return t(i[6]).StackViewCard},get StackViewTransitionConfigs(){return t(i[6]).StackViewTransitionConfigs},get SafeAreaView(){return t(i[21]).default},get SceneView(){return t(i[22]).default},get ResourceSavingSceneView(){return t(i[23]).default},get Header(){return t(i[6]).Header},get HeaderTitle(){return t(i[6]).HeaderTitle},get HeaderBackButton(){return t(i[6]).HeaderBackButton},get HeaderStyleInterpolator(){return t(i[6]).HeaderStyleInterpolator},get DrawerView(){return t(i[8]).DrawerView},get DrawerItems(){return t(i[8]).DrawerNavigatorItems},get DrawerSidebar(){return t(i[8]).DrawerSidebar},get TabView(){return console.warn('TabView is deprecated. Please use the react-navigation-tabs package instead: https://github.com/react-navigation/react-navigation-tabs'),t(i[9]).TabView},get TabBarTop(){return console.warn('TabBarTop is deprecated. Please use the react-navigation-tabs package instead: https://github.com/react-navigation/react-navigation-tabs'),t(i[9]).TabBarTop},get TabBarBottom(){return console.warn('TabBarBottom is deprecated. Please use the react-navigation-tabs package instead: https://github.com/react-navigation/react-navigation-tabs'),t(i[9]).TabBarBottom},get SwitchView(){return t(i[24]).default},get NavigationEvents(){return t(i[25]).default},get withNavigation(){return t(i[26]).default},get withNavigationFocus(){return t(i[27]).default},get withOrientation(){return t(i[28]).default}}},303,[304,320,307,321,322,323,327,352,362,372,388,306,358,412,414,354,356,355,359,416,314,417,361,419,360,420,421,422,423]); __d(function(t,e,n,a,i){Object.defineProperty(a,"__esModule",{value:!0}),a._TESTING_ONLY_reset_container_count=function(){0},a.default=function(t){var e=(function(e){function n(e){var a=this;babelHelpers.classCallCheck(this,n);var i=babelHelpers.possibleConstructorReturn(this,(n.__proto__||Object.getPrototypeOf(n)).call(this,e));return i.subs=null,i._actionEventSubscribers=new Set,i._handleOpenURL=function(e){var n=e.url,a=i.props,r=a.enableURLHandling,o=a.uriPrefix;if(!1!==r){var s=(0,d.urlToPathAndParams)(n,o);if(s){var u=s.path,l=s.params,c=t.router.getActionForPathAndParams(u,l);c&&i.dispatch(c)}}},i._persistNavigationState=function(t){var e;return regeneratorRuntime.async(function(n){for(;;)switch(n.prev=n.next){case 0:if(e=i.props.persistenceKey){n.next=3;break}return n.abrupt("return");case 3:return n.next=5,regeneratorRuntime.awrap(s.AsyncStorage.setItem(e,JSON.stringify(t)));case 5:case"end":return n.stop()}},null,a)},i.dispatch=function(e){if(i.props.navigation)return i.props.navigation.dispatch(e);i._navState=i._navState||i.state.nav;var n=i._navState;(0,f.default)(n,'should be set in constructor if stateful');var a=t.router.getStateForAction(e,n),r=null===a?n:a,o=function(){i._actionEventSubscribers.forEach(function(t){return t({type:'action',action:e,state:r,lastState:n})})};return null===a?(o(),!0):r!==n?(i._navState=r,i.setState({nav:r},function(){i._onNavigationStateChange(n,r,e),o(),i._persistNavigationState(r)}),!0):(o(),!1)},i._getScreenProps=function(){return i.props.screenProps},_(e),i._initialAction=c.default.init(),i._isStateful()&&(i.subs=s.BackHandler.addEventListener('hardwareBackPress',function(){if(i._isMounted)return i.dispatch(c.default.back());i.subs&&i.subs.remove()})),i.state={nav:i._isStateful()&&!e.persistenceKey?t.router.getStateForAction(i._initialAction):null},i}return babelHelpers.inherits(n,e),babelHelpers.createClass(n,null,[{key:"getDerivedStateFromProps",value:function(t,e){return _(t),null}}]),babelHelpers.createClass(n,[{key:"_renderLoading",value:function(){return this.props.renderLoadingExperimental?this.props.renderLoadingExperimental():null}},{key:"_isStateful",value:function(){return b(this.props)}},{key:"_validateProps",value:function(t){if(!this._isStateful()){t.navigation,t.screenProps;var e=babelHelpers.objectWithoutProperties(t,["navigation","screenProps"]),n=Object.keys(e);if(0!==n.length)throw new Error("This navigator has both navigation and container props, so it is unclear if it should own its own state. Remove props: \""+n.join(', ')+"\" if the navigator should get its state from the navigation prop. If the navigator should maintain its own state, do not pass a navigation prop.")}}},{key:"_onNavigationStateChange",value:function(t,e,n){void 0===this.props.onNavigationStateChange&&this._isStateful()&&process.env.REACT_NAV_LOGGING?console.group?(console.group('Navigation Dispatch: '),console.log('Action: ',n),console.log('New State: ',e),console.log('Last State: ',t),console.groupEnd()):console.log('Navigation Dispatch: ',{action:n,newState:e,lastState:t}):'function'==typeof this.props.onNavigationStateChange&&this.props.onNavigationStateChange(t,e,n)}},{key:"componentDidUpdate",value:function(){this._navState===this.state.nav&&(this._navState=null)}},{key:"componentDidMount",value:function(){var e,n,a,i,r,o,u,l,c,p,h,v,f,g,b=this;return regeneratorRuntime.async(function(_){for(;;)switch(_.prev=_.next){case 0:if(this._isMounted=!0,this._isStateful()){_.next=3;break}return _.abrupt("return");case 3:if(0,s.Linking.addEventListener('url',this._handleOpenURL),e=this.props,n=e.persistenceKey,a=e.uriPrefix,i=e.enableURLHandling,r=null,o=null,!1===i){_.next=19;break}if(_.t0=n,!_.t0){_.next=14;break}return _.next=13,regeneratorRuntime.awrap(s.AsyncStorage.getItem(n));case 13:_.t0=_.sent;case 14:return o=_.t0,_.next=17,regeneratorRuntime.awrap(s.Linking.getInitialURL());case 17:u=_.sent,r=u&&(0,d.urlToPathAndParams)(u,a);case 19:if(l=this._initialAction,(c=this.state.nav)||(process.env.REACT_NAV_LOGGING&&console.log('Init new Navigation State'),c=t.router.getStateForAction(l)),o)try{c=JSON.parse(o),S=!0}catch(t){}if(r&&(h=(p=r).path,v=p.params,(f=t.router.getActionForPathAndParams(h,v))&&(process.env.REACT_NAV_LOGGING&&console.log('Applying Navigation Action for Initial URL:',url),l=f,c=t.router.getStateForAction(f,c))),g=function(){return b._actionEventSubscribers.forEach(function(t){return t({type:'action',action:l,state:b.state.nav,lastState:null})})},c!==this.state.nav){_.next=28;break}return g(),_.abrupt("return");case 28:this.setState({nav:c},function(){S=!1,g()});case 29:case"end":return _.stop()}},null,this)}},{key:"componentDidCatch",value:function(t,e){if(!S)throw t;S=!1,console.warn('Uncaught exception while starting app from persisted navigation state! Trying to render again with a fresh navigation state..'),this.dispatch(c.default.init())}},{key:"componentWillUnmount",value:function(){this._isMounted=!1,s.Linking.removeEventListener('url',this._handleOpenURL),this.subs&&this.subs.remove(),this._isStateful()&&0}},{key:"render",value:function(){var e=this,n=this.props.navigation;if(this._isStateful()){var a=this.state.nav;if(!a)return this._renderLoading();this._navigation&&this._navigation.state===a||(this._navigation=(0,h.default)(t.router,a,this.dispatch,this._actionEventSubscribers,this._getScreenProps,function(){return e._navigation})),n=this._navigation}return(0,f.default)(n,'failed to get navigation'),o.default.createElement(t,babelHelpers.extends({},this.props,{navigation:n}))}}]),n})(o.default.Component);return e.router=t.router,e.navigationOptions=null,(0,u.polyfill)(e)};var r=e(i[0]),o=babelHelpers.interopRequireDefault(r),s=e(i[1]),u=e(i[2]),l=e(i[3]),c=babelHelpers.interopRequireDefault(l),p=e(i[4]),h=babelHelpers.interopRequireDefault(p),v=e(i[5]),f=babelHelpers.interopRequireDefault(v),g=e(i[6]),d=(babelHelpers.interopRequireDefault(g),e(i[7]));function b(t){return!t.navigation}function _(t){if(!b(t)){t.navigation,t.screenProps;var e=babelHelpers.objectWithoutProperties(t,["navigation","screenProps"]),n=Object.keys(e);if(0!==n.length)throw new Error("This navigator has both navigation and container props, so it is unclear if it should own its own state. Remove props: \""+n.join(', ')+"\" if the navigator should get its state from the navigation prop. If the navigator should maintain its own state, do not pass a navigation prop.")}}var S=!1},304,[96,12,305,306,307,309,313,314]); __d(function(t,e,n,o,i){'use strict';function p(){var t=this.constructor.getDerivedStateFromProps(this.props,this.state);null!==t&&void 0!==t&&this.setState(t)}function l(t){this.setState(function(e){var n=this.constructor.getDerivedStateFromProps(t,e);return null!==n&&void 0!==n?n:null}.bind(this))}function r(t,e){try{var n=this.props,o=this.state;this.props=t,this.state=e,this.__reactInternalSnapshotFlag=!0,this.__reactInternalSnapshot=this.getSnapshotBeforeUpdate(n,o)}finally{this.props=n,this.state=o}}Object.defineProperty(o,'__esModule',{value:!0}),p.__suppressDeprecationWarning=!0,l.__suppressDeprecationWarning=!0,r.__suppressDeprecationWarning=!0,o.polyfill=function(t){var e=t.prototype;if(!e||!e.isReactComponent)throw new Error('Can only polyfill class components');if('function'!=typeof t.getDerivedStateFromProps&&'function'!=typeof e.getSnapshotBeforeUpdate)return t;var n=null,o=null,i=null;if('function'==typeof e.componentWillMount?n='componentWillMount':'function'==typeof e.UNSAFE_componentWillMount&&(n='UNSAFE_componentWillMount'),'function'==typeof e.componentWillReceiveProps?o='componentWillReceiveProps':'function'==typeof e.UNSAFE_componentWillReceiveProps&&(o='UNSAFE_componentWillReceiveProps'),'function'==typeof e.componentWillUpdate?i='componentWillUpdate':'function'==typeof e.UNSAFE_componentWillUpdate&&(i='UNSAFE_componentWillUpdate'),null!==n||null!==o||null!==i){var s=t.displayName||t.name,a='function'==typeof t.getDerivedStateFromProps?'getDerivedStateFromProps()':'getSnapshotBeforeUpdate()';throw Error('Unsafe legacy lifecycles will not be called for components using new component APIs.\n\n'+s+' uses '+a+' but also contains the following legacy lifecycles:'+(null!==n?'\n '+n:'')+(null!==o?'\n '+o:'')+(null!==i?'\n '+i:'')+"\n\nThe above lifecycles should be removed. Learn more about this warning here:\nhttps://fb.me/react-async-component-lifecycle-hooks")}if('function'==typeof t.getDerivedStateFromProps&&(e.componentWillMount=p,e.componentWillReceiveProps=l),'function'==typeof e.getSnapshotBeforeUpdate){if('function'!=typeof e.componentDidUpdate)throw new Error('Cannot polyfill getSnapshotBeforeUpdate() for components that do not define componentDidUpdate() on the prototype');e.componentWillUpdate=r;var c=e.componentDidUpdate;e.componentDidUpdate=function(t,e,n){var o=this.__reactInternalSnapshotFlag?this.__reactInternalSnapshot:n;c.call(this,t,e,o)}}return t}},305,[]); @@ -422,280 +422,291 @@ __d(function(e,r,t,n,o){Object.defineProperty(n,"__esModule",{value:!0});var i=r __d(function(e,t,a,r,n){Object.defineProperty(r,"__esModule",{value:!0}),r.default=function(e){var t=(function(t){function a(){return babelHelpers.classCallCheck(this,a),babelHelpers.possibleConstructorReturn(this,(a.__proto__||Object.getPrototypeOf(a)).apply(this,arguments))}return babelHelpers.inherits(a,t),babelHelpers.createClass(a,[{key:"render",value:function(){var t=this,a=this.props.navigation;return l.default.createElement(b.NavigationConsumer,null,function(r){var n=a||r;return(0,p.default)(!!n,'withNavigation can only be used on a view hierarchy of a navigator. The wrapped component is unable to get access to navigation from props or context.'),l.default.createElement(e,babelHelpers.extends({},t.props,{navigation:n,ref:t.props.onRef}))})}}]),a})(l.default.Component);return t.displayName="withNavigation("+(e.displayName||e.name)+")",(0,s.default)(t,e)};var o=t(n[0]),l=babelHelpers.interopRequireDefault(o),i=t(n[1]),s=babelHelpers.interopRequireDefault(i),u=t(n[2]),p=babelHelpers.interopRequireDefault(u),b=t(n[3])},421,[96,394,309,323]); __d(function(e,t,n,i,a){Object.defineProperty(i,"__esModule",{value:!0}),i.default=function(e){var t=(function(t){function n(e){babelHelpers.classCallCheck(this,n);var t=babelHelpers.possibleConstructorReturn(this,(n.__proto__||Object.getPrototypeOf(n)).call(this,e));return t.state={isFocused:!!e.navigation&&e.navigation.isFocused()},t}return babelHelpers.inherits(n,t),babelHelpers.createClass(n,[{key:"componentDidMount",value:function(){var e=this,t=this.props.navigation;(0,c.default)(!!t,'withNavigationFocus can only be used on a view hierarchy of a navigator. The wrapped component is unable to get access to navigation from props or context.'),this.subscriptions=[t.addListener('didFocus',function(){return e.setState({isFocused:!0})}),t.addListener('willBlur',function(){return e.setState({isFocused:!1})})]}},{key:"componentWillUnmount",value:function(){this.subscriptions.forEach(function(e){return e.remove()})}},{key:"render",value:function(){return s.default.createElement(e,babelHelpers.extends({},this.props,{isFocused:this.state.isFocused,ref:this.props.onRef}))}}]),n})(s.default.Component);return t.displayName="withNavigationFocus("+(e.displayName||e.name)+")",(0,u.default)((0,d.default)(t),e)};var o=t(a[0]),s=babelHelpers.interopRequireDefault(o),r=t(a[1]),u=babelHelpers.interopRequireDefault(r),l=t(a[2]),c=babelHelpers.interopRequireDefault(l),p=t(a[3]),d=babelHelpers.interopRequireDefault(p)},422,[96,394,309,421]); __d(function(e,n,t,i,a){Object.defineProperty(i,"__esModule",{value:!0}),i.isOrientationLandscape=void 0,i.default=function(e){var n=(function(n){function i(){babelHelpers.classCallCheck(this,i);var e=babelHelpers.possibleConstructorReturn(this,(i.__proto__||Object.getPrototypeOf(i)).call(this));t.call(e);var n=c(o.Dimensions.get('window'));return e.state={isLandscape:n},e}return babelHelpers.inherits(i,n),babelHelpers.createClass(i,[{key:"componentDidMount",value:function(){o.Dimensions.addEventListener('change',this.handleOrientationChange)}},{key:"componentWillUnmount",value:function(){o.Dimensions.removeEventListener('change',this.handleOrientationChange)}},{key:"render",value:function(){return s.default.createElement(e,babelHelpers.extends({},this.props,this.state))}}]),i})(s.default.Component),t=function(){var e=this;this.handleOrientationChange=function(n){var t=n.window,i=c(t);e.setState({isLandscape:i})}};return(0,u.default)(n,e)};var r=n(a[0]),s=babelHelpers.interopRequireDefault(r),o=n(a[1]),l=n(a[2]),u=babelHelpers.interopRequireDefault(l),c=i.isOrientationLandscape=function(e){return e.width>e.height}},423,[96,12,394]); -__d(function(e,t,l,a,n){Object.defineProperty(a,"__esModule",{value:!0});var r=t(n[0]),i=babelHelpers.interopRequireDefault(r),o=t(n[1]),d=(o.NativeModules.refreshWallet,o.NativeModules.AndroidWallet),c=(function(e){function l(){var e,t,a,n;babelHelpers.classCallCheck(this,l);for(var r=arguments.length,i=Array(r),c=0;c1&&a.state.amount.toString().split(".")[1].length>8?o.Alert.alert("INVALID AMOUNT","The amount you are sending can have up to 8 decimals.",[{text:"OK",onPress:function(){return console.log('OK Pressed')}}]):a.props.navigation.navigate('ConfirmTxModal',{amount:a.state.amount,recipient:a.state.recipient,otsIndex:a.state.otsIndex,fee:a.state.fee}):o.Alert.alert("INVALID AMOUNT","Enter a correct amount",[{text:"OK",onPress:function(){return console.log('OK Pressed')}}]):o.Alert.alert("PENDING TRANSACTION IDENTIFIED","You have a pending transaction on the network. Please check your OTS index again as it might need to be adjusted manually.",[{text:"OK",onPress:function(){return a.props.navigation.navigate('SendReceive')}}])})}).catch(function(e){console.log(e)}):o.Alert.alert("INVALID ADDRESS","The QRL address you provided as recipient is invalid",[{text:"OK",onPress:function(){return console.log('OK Pressed')}}])},a.copyAddress=function(e){o.Clipboard.setString('Q'+e),(0,c.showMessage)({message:"Simple message",type:"info"})},n=t,babelHelpers.possibleConstructorReturn(a,n)}return babelHelpers.inherits(l,e),babelHelpers.createClass(l,[{key:"componentDidMount",value:function(){var e=this,t=this.props.navigation.getParam('recipient','norecipient');"norecipient"==t?this.setState({recipient:""}):this.setState({recipient:t}),this.setState({isLoading:!0}),o.AsyncStorage.getItem("walletindex").then(function(t){p.refreshWallet(t,function(e){console.log(e)},function(t,l,a,n){e.setState({walletAddress:t,balance:a/1e9,otsIndex:l,isLoading:!1})})}).catch(function(e){console.log(e)})}},{key:"render",value:function(){var e=this;return this.state.isLoading?r.default.createElement(o.View,null):(addressBegin=this.state.walletAddress.substring(1,10),addressEnd=this.state.walletAddress.substring(58,79),d.default.getDeviceId().includes("iPhone10")?r.default.createElement(o.ScrollView,{scrollEnabled:!1,contentContainerStyle:{flex:1}},r.default.createElement(o.ImageBackground,{source:t(n[9]),style:E.backgroundImage},r.default.createElement(o.View,{style:{alignItems:'flex-start',justifyContent:'flex-start',paddingTop:40,paddingLeft:30}},r.default.createElement(o.TouchableHighlight,{onPress:function(){return e.props.navigation.openDrawer()},underlayColor:"#184477"},r.default.createElement(o.Image,{source:t(n[10]),resizeMode:o.Image.resizeMode.contain,style:{height:25,width:25}}))),r.default.createElement(u.default,null),r.default.createElement(o.View,{style:{alignItems:'center',paddingTop:this.state.paddingTopMain}},r.default.createElement(o.ImageBackground,{source:t(n[11]),resizeMode:o.Image.resizeMode.contain,style:{height:100,width:330,justifyContent:'center',alignItems:'center',paddingLeft:10,paddingRight:10}},r.default.createElement(o.Text,{style:{color:'white',fontWeight:"bold",fontSize:12,textAlign:'center'},selectable:!0},"Q",this.state.walletAddress),r.default.createElement(o.Text,{style:{color:'white',fontSize:30}},this.state.balance," QRL")),r.default.createElement(o.TouchableOpacity,{style:E.SubmitButtonStyle2,activeOpacity:.5,onPress:this.refreshWallet},r.default.createElement(o.Image,{source:t(n[12]),style:{height:40,width:40}}))),"send"==this.state.view?r.default.createElement(o.KeyboardAvoidingView,{style:{flex:1,paddingTop:this.state.paddingTopCentral,paddingBottom:100,width:330,alignSelf:'center',borderRadius:10},behavior:"padding"},r.default.createElement(o.ScrollView,{style:{flex:1}},r.default.createElement(o.View,{style:{height:this.state.menuHeight,backgroundColor:'white',flexDirection:'row'}},r.default.createElement(o.TouchableOpacity,{onPress:this.switchSend,style:{flex:1,justifyContent:'center',alignItems:'center',backgroundColor:'white'}},r.default.createElement(o.Text,null,"SEND")),r.default.createElement(o.TouchableOpacity,{onPress:this.switchReceive,style:{flex:1,justifyContent:'center',alignItems:'center',backgroundColor:'#fafafa'}},r.default.createElement(o.Text,null,"RECEIVE"))),r.default.createElement(o.View,{style:{width:'50%',height:1,backgroundColor:'red'}}),r.default.createElement(o.View,{style:{height:300,backgroundColor:'white',width:330,padding:30}},r.default.createElement(o.Text,null,"RECIPIENT"),r.default.createElement(o.TextInput,{onChangeText:function(t){return e._onRecipientChange(t)},value:this.state.recipient,style:{backgroundColor:'#ebe8e8',height:50}}),r.default.createElement(o.Text,null,'\n',"AMOUNT"),r.default.createElement(o.TextInput,{keyboardType:'numeric',onChangeText:function(t){return e._onAmountChange(t)},value:this.state.amount,style:{backgroundColor:'#ebe8e8',height:50}}),r.default.createElement(o.View,{style:{flexDirection:'row',paddingTop:10}},r.default.createElement(o.View,{style:{flex:1,alignItems:'flex-start'}},r.default.createElement(o.Text,null,"Fee: ",r.default.createElement(o.Text,{style:{color:'red'}},"0.001"))),r.default.createElement(o.View,{style:{flex:1,alignItems:'flex-end'}},r.default.createElement(o.Text,null,"OTS Key Index: ",r.default.createElement(o.Text,{style:{color:'red'}},this.state.otsIndex)))),r.default.createElement(o.TouchableOpacity,{style:E.SubmitButtonStyleBig,activeOpacity:.5,onPress:this.checkAddress},r.default.createElement(o.Text,{style:E.TextStyle}," REVIEW AND CONFIRM")),r.default.createElement(o.TouchableOpacity,{style:E.SubmitButtonStyle3,activeOpacity:.5,onPress:function(){return e.props.navigation.navigate('ScanQrModal')}},r.default.createElement(o.Image,{source:t(n[13]),resizeMode:o.Image.resizeMode.contain,style:{height:80,width:80}}))))):r.default.createElement(o.View,{style:{flex:1,paddingTop:this.state.paddingTopCentral,paddingBottom:100,width:330,alignSelf:'center',borderRadius:10}},r.default.createElement(o.View,{style:{height:this.state.menuHeight,backgroundColor:'white',flexDirection:'row'}},r.default.createElement(o.TouchableOpacity,{onPress:this.switchSend,style:{flex:1,justifyContent:'center',alignItems:'center',backgroundColor:'#fafafa'}},r.default.createElement(o.Text,null,"SEND")),r.default.createElement(o.TouchableOpacity,{onPress:this.switchReceive,style:{flex:1,justifyContent:'center',alignItems:'center',backgroundColor:'white'}},r.default.createElement(o.Text,null,"RECEIVE"))),r.default.createElement(o.View,{style:{width:'50%',height:1,backgroundColor:'red',alignSelf:'flex-end'}}),r.default.createElement(o.View,{style:{height:300,backgroundColor:'white',width:330,padding:30,alignItems:'center'}},r.default.createElement(g.default,{value:this.state.walletAddress,size:150,bgColor:"black",fgColor:"white"}),r.default.createElement(o.Text,{style:{fontWeight:'bold',paddingTop:30}},"Your public wallet address"),r.default.createElement(o.Text,null,"Q",this.state.walletAddress)),r.default.createElement(o.View,null,r.default.createElement(o.TouchableOpacity,{style:E.SubmitButtonStyle,activeOpacity:.5,onPress:function(){o.Clipboard.setString('Q'+e.state.walletAddress),(0,c.showMessage)({message:"QRL address copied to clipboard",type:"info",backgroundColor:"#EB2E42"})}},r.default.createElement(o.Text,{style:E.TextStyle}," COPY ")))))):r.default.createElement(o.KeyboardAvoidingView,{style:{flex:1},keyboardVerticalOffset:-200,behavior:"padding"},r.default.createElement(o.ImageBackground,{source:t(n[9]),style:E.backgroundImage},r.default.createElement(o.View,{style:{alignItems:'flex-start',justifyContent:'flex-start',paddingTop:40,paddingLeft:30}},r.default.createElement(o.TouchableHighlight,{onPress:function(){return e.props.navigation.openDrawer()},underlayColor:"#184477"},r.default.createElement(o.Image,{source:t(n[10]),resizeMode:o.Image.resizeMode.contain,style:{height:25,width:25}}))),r.default.createElement(u.default,null),r.default.createElement(o.View,{style:{alignItems:'center',paddingTop:20}},r.default.createElement(o.ImageBackground,{source:t(n[11]),resizeMode:o.Image.resizeMode.contain,style:{height:100,width:330,justifyContent:'center',alignItems:'center'}},r.default.createElement(o.Text,{style:{color:'white',fontWeight:"bold",fontSize:12,textAlign:'center'},selectable:!0},"Q",this.state.walletAddress),r.default.createElement(o.Text,{style:{color:'white',fontSize:30}},this.state.balance," QRL")),r.default.createElement(o.TouchableOpacity,{style:E.SubmitButtonStyle2,activeOpacity:.5,onPress:this.refreshWallet},r.default.createElement(o.Image,{source:t(n[12]),style:{height:40,width:40}}))),"send"==this.state.view?r.default.createElement(o.View,{style:{flex:1,paddingTop:this.state.paddingTopCentral,paddingBottom:100,width:330,alignSelf:'center',borderRadius:10}},r.default.createElement(o.View,{style:{height:50,backgroundColor:'white',flexDirection:'row'}},r.default.createElement(o.TouchableOpacity,{onPress:this.switchSend,style:{flex:1,justifyContent:'center',alignItems:'center',backgroundColor:'white'}},r.default.createElement(o.Text,null,"SEND")),r.default.createElement(o.TouchableOpacity,{onPress:this.switchReceive,style:{flex:1,justifyContent:'center',alignItems:'center',backgroundColor:'#fafafa'}},r.default.createElement(o.Text,null,"RECEIVE"))),r.default.createElement(o.View,{style:{width:'50%',height:1,backgroundColor:'red'}}),r.default.createElement(o.View,{style:{height:290,backgroundColor:'white',width:330,padding:30}},r.default.createElement(o.Text,null,"RECIPIENT"),r.default.createElement(o.TextInput,{onChangeText:function(t){return e._onRecipientChange(t)},underlineColorAndroid:"transparent",value:this.state.recipient,style:{backgroundColor:'#ebe8e8',height:40}}),r.default.createElement(o.Text,null,'\n',"AMOUNT"),r.default.createElement(o.TextInput,{keyboardType:'numeric',underlineColorAndroid:"transparent",onChangeText:function(t){return e._onAmountChange(t)},value:this.state.amount,style:{backgroundColor:'#ebe8e8',height:40}}),r.default.createElement(o.View,{style:{flexDirection:'row',paddingTop:10}},r.default.createElement(o.View,{style:{flex:1,alignItems:'flex-start'}},r.default.createElement(o.Text,null,"Fee: ",r.default.createElement(o.Text,{style:{color:'red'}},"0.001"))),r.default.createElement(o.View,{style:{flex:1,alignItems:'flex-end'}},r.default.createElement(o.Text,null,"OTS Key Index: ",r.default.createElement(o.Text,{style:{color:'red'}},this.state.otsIndex)))),r.default.createElement(o.TouchableOpacity,{style:E.SubmitButtonStyleBig,activeOpacity:.5,onPress:this.checkAddress},r.default.createElement(o.Text,{style:E.TextStyle}," REVIEW AND CONFIRM "))),r.default.createElement(o.View,{style:{flex:.1}},r.default.createElement(o.TouchableOpacity,{style:E.SubmitButtonStyle3,activeOpacity:.5,onPress:function(){return e.props.navigation.navigate('ScanQrModal')}},r.default.createElement(o.Image,{source:t(n[13]),resizeMode:o.Image.resizeMode.contain,style:{height:70,width:70}})))):r.default.createElement(o.View,{style:{flex:1,paddingTop:this.state.paddingTopCentral,paddingBottom:100,width:330,alignSelf:'center',borderRadius:10}},r.default.createElement(o.View,{style:{height:50,backgroundColor:'white',flexDirection:'row'}},r.default.createElement(o.TouchableOpacity,{onPress:this.switchSend,style:{flex:1,justifyContent:'center',alignItems:'center',backgroundColor:'#fafafa'}},r.default.createElement(o.Text,null,"SEND")),r.default.createElement(o.TouchableOpacity,{onPress:this.switchReceive,style:{flex:1,justifyContent:'center',alignItems:'center',backgroundColor:'white'}},r.default.createElement(o.Text,null,"RECEIVE"))),r.default.createElement(o.View,{style:{width:'50%',height:1,backgroundColor:'red',alignSelf:'flex-end'}}),r.default.createElement(o.View,{style:{height:300,backgroundColor:'white',width:330,padding:30,alignItems:'center'}},r.default.createElement(g.default,{value:this.state.walletAddress,size:150,bgColor:"black",fgColor:"white"}),r.default.createElement(o.Text,{style:{fontWeight:'bold',paddingTop:30}},"Your public wallet address"),r.default.createElement(o.Text,null,"Q",this.state.walletAddress)),r.default.createElement(o.View,null,r.default.createElement(o.TouchableOpacity,{style:E.SubmitButtonStyle,activeOpacity:.5,onPress:function(){o.Clipboard.setString('Q'+e.state.walletAddress),(0,c.showMessage)({message:"QRL address copied to clipboard",backgroundColor:"#EB2E42"})}},r.default.createElement(o.Text,{style:E.TextStyle}," COPY ")))))))}}]),l})(r.default.Component));y.navigationOptions={drawerLabel:'SEND & RECEIVE',drawerIcon:function(e){e.tintColor;return r.default.createElement(o.Image,{source:t(n[14]),resizeMode:o.Image.resizeMode.contain,style:{width:25,height:25}})}},a.default=y;var E=o.StyleSheet.create({SubmitButtonStyle:{alignSelf:'flex-end',width:150,marginTop:30,paddingTop:15,paddingBottom:15,backgroundColor:'#f33160'},SubmitButtonStyleBig:{alignSelf:'center',width:250,marginTop:30,paddingTop:15,paddingBottom:15,backgroundColor:'#f33160',borderWidth:1,borderColor:'#fff'},SubmitButtonStyleCopy:{alignSelf:'flex-end',width:150,marginTop:10,paddingTop:15,paddingBottom:15,backgroundColor:'#f33160',borderWidth:1,borderColor:'#fff'},SubmitButtonStyle3:{flex:1,alignSelf:'center',paddingTop:15,paddingBottom:85},SubmitButtonStyle2:{alignItems:'center',justifyContent:'center',alignSelf:'center',top:-15,left:-1},TextStyle:{color:'#fff',textAlign:'center'},backgroundImage:{flex:1,width:null,height:null}})},429,[96,12,430,303,432,443,456,468,472,425,426,473,474,475,476]); __d(function(e,t,n,r,u){Object.defineProperty(r,"__esModule",{value:!0});var i=t(u[0]).NativeModules.RNDeviceInfo;r.default={getUniqueID:function(){return i.uniqueId},getInstanceID:function(){return i.instanceId},getSerialNumber:function(){return i.serialNumber},getIPAddress:function(){return i.getIpAddress()},getMACAddress:function(){return i.getMacAddress()},getDeviceId:function(){return i.deviceId},getManufacturer:function(){return i.systemManufacturer},getModel:function(){return i.model},getBrand:function(){return i.brand},getSystemName:function(){return i.systemName},getSystemVersion:function(){return i.systemVersion},getAPILevel:function(){return i.apiLevel},getBundleId:function(){return i.bundleId},getApplicationName:function(){return i.appName},getBuildNumber:function(){return i.buildNumber},getVersion:function(){return i.appVersion},getReadableVersion:function(){return i.appVersion+'.'+i.buildNumber},getDeviceName:function(){return i.deviceName},getUserAgent:function(){return i.userAgent},getDeviceLocale:function(){return i.deviceLocale},getDeviceCountry:function(){return i.deviceCountry},getTimezone:function(){return i.timezone},getFontScale:function(){return i.fontScale},isEmulator:function(){return i.isEmulator},isTablet:function(){return i.isTablet},is24Hour:function(){return i.is24Hour},isPinOrFingerprintSet:function(){return i.isPinOrFingerprintSet},getFirstInstallTime:function(){return i.firstInstallTime},getInstallReferrer:function(){return i.installReferrer},getLastUpdateTime:function(){return i.lastUpdateTime},getPhoneNumber:function(){return i.phoneNumber},getCarrier:function(){return i.carrier},getTotalMemory:function(){return i.totalMemory},getMaxMemory:function(){return i.maxMemory},getTotalDiskCapacity:function(){return i.totalDiskCapacity},getFreeDiskStorage:function(){return i.freeDiskStorage},getBatteryLevel:function(){return i.getBatteryLevel()}}},430,[12,431]); __d(function(e,r,t,n,i){t.exports={uniqueId:'',instanceId:'',serialNumber:'',getIpAddress:function(){return new Promise(function(e,r){return e('')})},getMacAddress:function(){return new Promise(function(e,r){return e('')})},deviceId:'',systemManufacturer:'',model:'',brand:'',systemName:'',systemVersion:'',apiLevel:0,bundleId:'',appName:'',buildNumber:0,appVersion:0,deviceName:'',userAgent:window.navigator.userAgent,deviceLocale:'',deviceCountry:'',timezone:'',fontScale:0,isEmulator:!1,isTablet:!1,is24Hour:!1,isPinOrFingerprintSet:function(e){return e&&e(!1)},firstInstallTime:0,installReferrer:'',lastUpdateTime:0,phoneNumber:'',carrier:'',totalMemory:0,maxMemory:0,totalDiskCapacity:0,freeDiskStorage:0,getBatteryLevel:function(){return Promise.resolve(0)}}},431,[]); -__d(function(n,o,t,_,c){t.exports=o(c[0])},432,[433]); -__d(function(o,t,e,r,n){'use strict';var i=t(n[0]),s=t(n[1]),l=t(n[2]),h=t(n[3]),a=t(n[4]),d=t(n[5]).View;function f(o){var t=o.getContext('2d'),e=this.size,r=this.fgColor,n=this.bgColor;o.width=e,o.height=e,o.style.left=(window.innerWidth-e)/2+'px',window.innerHeight>e&&(o.style.top=(window.innerHeight-e)/2+'px'),t.fillRect(0,0,e,e);var i=this.cells,s=this.size/i.length,l=this.size/i.length,h=Math.round(s),a=Math.round(l);i.forEach(function(o,e){o.forEach(function(o,i){var d=i*s,f=e*l;t.fillStyle=t.strokeStyle=o?n:r,t.lineWidth=1,t.fillRect(d,f,s,l),t.strokeRect(Math.floor(d)+.5,Math.floor(f)+.5,h,a),t.strokeRect(Math.ceil(d)-.5,Math.ceil(f)-.5,h,a)})})}var c=l({displayName:"QRCode",PropTypes:{value:s.string,size:s.number,bgColor:s.string,fgColor:s.string,onLoad:s.func,onLoadEnd:s.func},getDefaultProps:function(){return{value:'https://github.com/cssivision',fgColor:'white',bgColor:'black',size:128,onLoad:function(){},onLoadEnd:function(){}}},utf16to8:function(o){var t,e,r,n;for(t="",r=o.length,e=0;e=1&&n<=127?t+=o.charAt(e):n>2047?(t+=String.fromCharCode(224|n>>12&15),t+=String.fromCharCode(128|n>>6&63),t+=String.fromCharCode(128|n>>0&63)):(t+=String.fromCharCode(192|n>>6&31),t+=String.fromCharCode(128|n>>0&63));return t},render:function(){var o=this.props.size,t=this.utf16to8(this.props.value);return i.createElement(d,null,i.createElement(h,{context:{size:o,value:this.props.value,bgColor:this.props.bgColor,fgColor:this.props.fgColor,cells:a(t).modules},render:f,onLoad:this.props.onLoad,onLoadEnd:this.props.onLoadEnd,style:{height:o,width:o}}))}});e.exports=c},433,[96,107,152,434,435,12]); -__d(function(t,e,n,a,s){'use strict';var o=e(s[0]),r=e(s[1]),c=e(s[2]),i=e(s[3]),l=i.View,p=i.WebView,d=(i.Platform,c({displayName:"Canvas",propTypes:{style:r.object,context:r.object,render:r.func.isRequired,onLoad:r.func,onLoadEnd:r.func},render:function(){var t=JSON.stringify(this.props.context),e=this.props.render.toString();return o.createElement(l,{style:this.props.style},o.createElement(p,{automaticallyAdjustContentInsets:!1,scalesPageToFit:!0,contentInset:{top:0,right:0,bottom:0,left:0},source:{html:"