Skip to content

Commit 9d78448

Browse files
authored
Merge pull request #4944 from GeekyAnts/fix/image
Fix/image
2 parents d9608f2 + 5dc0540 commit 9d78448

File tree

2 files changed

+8
-3
lines changed

2 files changed

+8
-3
lines changed

example/storybook/stories/components/primitives/Image/BorderRadius.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ export function Example() {
55
<Center>
66
<Image
77
size={150}
8-
resizeMode={'contain'}
98
borderRadius={100}
109
source={{
1110
uri: 'https://wallpaperaccess.com/full/317501.jpg',

example/storybook/stories/components/primitives/Image/WithRef.tsx

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,14 @@ export function Example() {
66
const myRef = React.useRef(null);
77

88
React.useEffect(() => {
9-
if (myRef.current && myRef.current.setNativeProps)
10-
myRef.current?.setNativeProps({ borderWidth: 10, opacity: 0.5 });
9+
const styleObj = {
10+
borderWidth: 4,
11+
borderRadius: 4,
12+
borderColor: '#22D3EE',
13+
};
14+
myRef?.current?.setNativeProps({
15+
style: styleObj,
16+
});
1117
}, [myRef]);
1218

1319
return (

0 commit comments

Comments
 (0)