Commit 09c903c
fix: [TypeScript] Remove non-existent methods from
Summary:
Using the code from `Test Plan` you will see that `ImageBackground` component doesn't have methods that declared on TypeScript side.
I checked the source code and there is also nothing:
https://github.com/facebook/react-native/blob/d9b0f15c844abce5e97edfd401656d84d0c84133/packages/react-native/Libraries/Image/ImageBackground.js#L47-L69
```tsx
// runtime (React Native 0.73)
{
"abortPrefetch": undefined,
"getSize": undefined,
"prefetch": undefined,
"queryCache": undefined,
"resizeMode": undefined
}
```
## Changelog:
[GENERAL] [REMOVED] - Remove non-existent methods from `<ImageBackground/>` component
Pull Request resolved: #43290
Test Plan:
```tsx
<ImageBackground
resizeMode={'contain'}
ref={ref => {
if (ref) {
console.log(' --- xdebug', {
resizeMode: ref.resizeMode,
queryCache: ref.queryCache,
getSize: ref.getSize,
prefetch: ref.prefetch,
abortPrefetch: ref.abortPrefetch,
});
}
}}
style={{
width: '100%',
height: '100%',
}}
source={{
uri: 'https://upload.wikimedia.org/wikipedia/commons/8/87/Arturo_Nieto-Dorantes.webp',
}}
/>
```
Reviewed By: cipolleschi
Differential Revision: D54466918
Pulled By: NickGerleman
fbshipit-source-id: 39bb555954fd6146f0e99106dbe9c13353191081<ImageBackground/> (#43290)1 parent ec928d7 commit 09c903c
1 file changed
+1
-13
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
379 | 379 | | |
380 | 380 | | |
381 | 381 | | |
382 | | - | |
383 | | - | |
384 | | - | |
385 | | - | |
386 | | - | |
387 | | - | |
388 | | - | |
389 | | - | |
390 | | - | |
391 | | - | |
392 | | - | |
393 | | - | |
394 | | - | |
| 382 | + | |
0 commit comments