File tree Expand file tree Collapse file tree 2 files changed +8
-3
lines changed
example/storybook/stories/components/primitives/Image Expand file tree Collapse file tree 2 files changed +8
-3
lines changed Original file line number Diff line number Diff line change @@ -5,7 +5,6 @@ export function Example() {
5
5
< Center >
6
6
< Image
7
7
size = { 150 }
8
- resizeMode = { 'contain' }
9
8
borderRadius = { 100 }
10
9
source = { {
11
10
uri : 'https://wallpaperaccess.com/full/317501.jpg' ,
Original file line number Diff line number Diff line change @@ -6,8 +6,14 @@ export function Example() {
6
6
const myRef = React . useRef ( null ) ;
7
7
8
8
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
+ } ) ;
11
17
} , [ myRef ] ) ;
12
18
13
19
return (
You can’t perform that action at this time.
0 commit comments