From 5af15ca44fd8297143185e2d672d16fb88ac95a3 Mon Sep 17 00:00:00 2001 From: ashertoufeeq Date: Sat, 22 Dec 2018 16:17:28 +0530 Subject: [PATCH] finalLayot --- App.js | 41 ++++++++++++++++++++++------------------- 1 file changed, 22 insertions(+), 19 deletions(-) diff --git a/App.js b/App.js index 941e6ec..d93e0a1 100644 --- a/App.js +++ b/App.js @@ -17,35 +17,43 @@ constructor(props){ row.push( - - buttons[i][j]; + + {buttons[i][j]} ); } rows.push( - - row; + + {row} ) - + } - - return ( + + let operatorsSym=["/","*","-","+"]; + let operatorKeys=[]; + for(let i = 0 ; i<4;i++){ +operatorKeys.push( + + {operatorsSym[i]} + +) + } + + return ( 0 + {rows} - / - * - - - + + {operatorKeys} = @@ -114,13 +122,8 @@ buttonEqual:{ alignItems:"center", justifyContent:"space-between" }, -buttonAC:{ - padding:20, - flex:3, - borderWidth:.3, - backgroundColor:"#fff", - borderColor:"#444", - color:"#ff6c16", +buttonText:{ + color:"#444", fontSize:25, alignItems:"center", justifyContent:"space-between" @@ -134,7 +137,7 @@ buttonAC:{ Back % - + 7 8 9