Skip to content

Commit

Permalink
fix: avatar image issue
Browse files Browse the repository at this point in the history
  • Loading branch information
Viraj Ajay Joshi authored and Viraj Ajay Joshi committed Jun 7, 2024
1 parent abaabaf commit 1159d82
Showing 1 changed file with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
import React from 'react';
import { createAvatar } from '@gluestack-ui/avatar';

import { View, Text, Image } from 'react-native';
import { View, Text, Image, Platform } from 'react-native';

import { tva } from '@gluestack-ui/nativewind-utils/tva';
import {
Expand Down Expand Up @@ -166,6 +166,12 @@ export const AvatarImage = React.forwardRef(
className={avatarImageStyle({
class: className,
})}
//@ts-ignore
style={
Platform.OS === 'web'
? { height: 'revert-layer', width: 'revert-layer' }
: undefined
}
/>
);
}
Expand Down

0 comments on commit 1159d82

Please sign in to comment.