ssap_app/node_modules/react-native-screens/ios/bottom-tabs/extensions/RNSBottomTabsHostComponentV...

24 lines
633 B
Plaintext

#import "RNSBottomTabsHostComponentView+RNSImageLoader.h"
#if RCT_NEW_ARCH_ENABLED
#import <React/RCTImageLoader.h>
#import <react/utils/ManagedObjectWrapper.h>
@implementation RNSBottomTabsHostComponentView (RNSImageLoader)
- (nullable RCTImageLoader *)retrieveImageLoaderFromState:
(facebook::react::RNSBottomTabsShadowNode::ConcreteState::Shared)receivedState
{
if (auto imgLoaderPtr = receivedState.get()->getData().getImageLoader().lock()) {
return react::unwrapManagedObject(imgLoaderPtr);
}
RCTLogWarn(@"[RNScreens] unable to retrieve RCTImageLoader");
return nil;
}
@end
#endif // RCT_NEW_ARCH_ENABLED