File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -110,19 +110,19 @@ const screen = useDimensions().screen
110
110
``` js
111
111
import {useImageDimensions } from ' @react-native-community/hooks'
112
112
113
- const dimensions = useImageDimensions (require (' ./assets/yourImage.png' ))
113
+ const imageDimensions = useImageDimensions (require (' ./assets/yourImage.png' ))
114
114
// or
115
- const dimensions = useImageDimensions ({uri: ' https://your.image.URI' })
115
+ const imageDimensions = useImageDimensions ({uri: ' https://your.image.URI' })
116
116
// or
117
- const dimensions = useImageDimensions ({uri: ' https://your.image.URI' }, error => {
117
+ const imageDimensions = useImageDimensions ({uri: ' https://your.image.URI' }, error => {
118
118
onImageFetchFailure (error)
119
119
})
120
120
121
- if (! dimensions ) {
121
+ if (! imageDimensions ) {
122
122
return null
123
123
}
124
124
125
- const {width , height } = dimensions
125
+ const {width , height } = imageDimensions
126
126
```
127
127
128
128
### ` useKeyboard `
You can’t perform that action at this time.
0 commit comments