Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- export default ({currency, bill}: { currency: string; bill: string }) => {
- if (CurrencyIndexEnum[currency] === 'first') {
- return (
- <View style={styles.container}>
- <Text style={styles.leftSide}>{CurrencyEnum[currency]}</Text>
- <Text style={styles.rightSide}>{bill}</Text>
- </View>);
- }else{
- return (
- <View style={styles.container}>
- <Text style={styles.leftSide}>{bill}</Text>
- <Text style={styles.rightSide}>{CurrencyEnum[currency]}</Text>
- </View>);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement