diff --git a/assets/eye_hidden.png b/assets/eye_hidden.png new file mode 100644 index 0000000..6351e1d Binary files /dev/null and b/assets/eye_hidden.png differ diff --git a/src/components/BalanceContainer.tsx b/src/components/BalanceContainer.tsx index 69c23b9..5f5e248 100644 --- a/src/components/BalanceContainer.tsx +++ b/src/components/BalanceContainer.tsx @@ -1,11 +1,14 @@ import Box from "@components/bases/Box"; import Text from "@components/bases/Text"; import { images } from "@styles/Commons"; -import { Image } from "react-native"; +import { useState } from "react"; +import { Image, TouchableOpacity } from "react-native"; type Props = { balance: number; label: string }; const BalanceContainer = ({ label, balance }: Props) => { + const [showBalance, setShowBalance] = useState(false); + return ( { - - {balance} - + setShowBalance(!showBalance)}> + + {showBalance ? ( + + {balance} + + ) : ( + + + + )} + + + {label}