Skip to content

Commit e9ae980

Browse files
feat(ReactNative): respect icon theme color in wallet UI (#4752)
1 parent d936d4e commit e9ae980

File tree

2 files changed

+13
-1
lines changed

2 files changed

+13
-1
lines changed

.changeset/dull-rockets-joke.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"thirdweb": patch
3+
---
4+
5+
[ReactNative] Respect icon theme color in connect button and detail modal

packages/thirdweb/src/react/native/ui/components/WalletImage.tsx

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,14 @@ export const WalletImage = (props: {
6565
});
6666

6767
const data = avatar || imageData || WALLET_ICON;
68-
return <RNImage theme={props.theme} data={data} size={size} />;
68+
return (
69+
<RNImage
70+
theme={props.theme}
71+
data={data}
72+
size={size}
73+
color={props.theme.colors.accentButtonBg}
74+
/>
75+
);
6976
};
7077

7178
export function getAuthProviderImage(authProvider: string | null): string {

0 commit comments

Comments
 (0)