We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4d9b797 commit 5dc0540Copy full SHA for 5dc0540
example/storybook/stories/components/primitives/Image/WithRef.tsx
@@ -6,8 +6,14 @@ export function Example() {
6
const myRef = React.useRef(null);
7
8
React.useEffect(() => {
9
- if (myRef.current && myRef.current.setNativeProps)
10
- myRef.current?.setNativeProps({ borderWidth: 10, opacity: 0.5 });
+ const styleObj = {
+ borderWidth: 4,
11
+ borderRadius: 4,
12
+ borderColor: '#22D3EE',
13
+ };
14
+ myRef?.current?.setNativeProps({
15
+ style: styleObj,
16
+ });
17
}, [myRef]);
18
19
return (
0 commit comments