react-native-webp-format icon indicating copy to clipboard operation
react-native-webp-format copied to clipboard

ImageBackground defaultSource error: Image source size does not match loaded image size

Open causztic opened this issue 4 years ago • 0 comments

Hi, I'm trying to set a default webp source for the background as it is being loaded:

<ImageBackground
  source={require('./galaxy-lightmode.webp')}
  defaultSource={require('./galaxy-lightmode.webp')}
  resizeMethod="scale"
  resizeMode="cover"
  style={{
          height: '100%',
          width: '100%'
}}>
...
</ImageBackground>

React Native version: 0.62.2

Image source galaxy-lightmode.webp size {1500, 3248} does not match loaded image size {0, 0}.

+[RCTConvert(Deprecated) UIImage:]
    RCTConvert.m:824
__49-[RCTComponentData createPropBlock:isShadowView:]_block_invoke.101
__49-[RCTComponentData createPropBlock:isShadowView:]_block_invoke_2.102
__49-[RCTComponentData propBlockForKey:isShadowView:]_block_invoke_2
RCTPerformBlockWithLogFunction
RCTPerformBlockWithLogPrefix
__49-[RCTComponentData propBlockForKey:isShadowView:]_block_invoke
__37-[RCTComponentData setProps:forView:]_block_invoke
__NSDICTIONARY_IS_CALLING_OUT_TO_A_BLOCK__
-[__NSDictionaryM enumerateKeysAndObjectsWithOptions:usingBlock:]
-[RCTComponentData setProps:forView:]
__42-[RCTUIManager updateView:viewName:props:]_block_invoke
__44-[RCTUIManager flushUIBlocksWithCompletion:]_block_invoke
__44-[RCTUIManager flushUIBlocksWithCompletion:]_block_invoke.489
__RCTExecuteOnMainQueue_block_invoke
_dispatch_call_block_and_release
_dispatch_client_callout
_dispatch_main_queue_callback_4CF
__CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE__
__CFRunLoopRun
CFRunLoopRunSpecific
GSEventRunModal
UIApplicationMain
main
start
0x0

causztic avatar Oct 09 '20 06:10 causztic