Advertisement
Guest User

Untitled

a guest
Jan 29th, 2020
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.59 KB | None | 0 0
  1. export default ({currency, bill}: { currency: string; bill: string }) => {
  2. if (CurrencyIndexEnum[currency] === 'first') {
  3. return (
  4. <View style={styles.container}>
  5. <Text style={styles.leftSide}>{CurrencyEnum[currency]}</Text>
  6. <Text style={styles.rightSide}>{bill}</Text>
  7. </View>);
  8. }else{
  9. return (
  10. <View style={styles.container}>
  11. <Text style={styles.leftSide}>{bill}</Text>
  12. <Text style={styles.rightSide}>{CurrencyEnum[currency]}</Text>
  13. </View>);
  14. }
  15. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement