({
wallet,
transactions,
addresses,
state,
navigateToWallet,
navigateToAddress,
renderHighlightedText,
})
| 269 | } |
| 270 | |
| 271 | const WalletGroupComponent: React.FC<WalletGroupProps> = ({ |
| 272 | wallet, |
| 273 | transactions, |
| 274 | addresses, |
| 275 | state, |
| 276 | navigateToWallet, |
| 277 | navigateToAddress, |
| 278 | renderHighlightedText, |
| 279 | }) => { |
| 280 | const { colors, dark } = useTheme(); |
| 281 | const { direction } = useLocale(); |
| 282 | const [expanded] = useState(true); |
| 283 | const fadeAnim = useRef(new Animated.Value(0)).current; |
| 284 | const hdElectrum = getHdElectrumWallet(wallet); |
| 285 | |
| 286 | useEffect(() => { |
| 287 | Animated.timing(fadeAnim, { |
| 288 | toValue: 1, |
| 289 | duration: 300, |
| 290 | useNativeDriver: true, |
| 291 | }).start(); |
| 292 | }, [fadeAnim]); |
| 293 | |
| 294 | const cardRadius = 16; |
| 295 | const cardShadowStyle: ViewStyle = { |
| 296 | marginHorizontal: 16, |
| 297 | marginVertical: 10, |
| 298 | borderRadius: cardRadius, |
| 299 | ...Platform.select({ |
| 300 | ios: { |
| 301 | shadowColor: '#000', |
| 302 | shadowOffset: { width: 0, height: 1 }, |
| 303 | shadowOpacity: 0.1, |
| 304 | shadowRadius: 4, |
| 305 | }, |
| 306 | android: { |
| 307 | elevation: 2, |
| 308 | }, |
| 309 | }), |
| 310 | }; |
| 311 | |
| 312 | const cardBorderColor = dark ? colors.lightBorder : colors.borderTopColor; |
| 313 | |
| 314 | const cardInnerStyle: ViewStyle = { |
| 315 | borderRadius: cardRadius, |
| 316 | overflow: 'hidden' as const, |
| 317 | backgroundColor: colors.elevated, |
| 318 | borderWidth: StyleSheet.hairlineWidth, |
| 319 | borderColor: cardBorderColor, |
| 320 | }; |
| 321 | |
| 322 | const childItemsContainerStyle = { |
| 323 | backgroundColor: colors.elevated, |
| 324 | }; |
| 325 | |
| 326 | const childItemStyle = (): ViewStyle => ({ |
| 327 | backgroundColor: colors.elevated, |
| 328 | }); |
nothing calls this directly
no test coverage detected