mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
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: https://github.com/facebook/react-native/pull/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