react-native-navigation的迁移库

RNNElementFinder.m 332B

12345678910111213
  1. #import "RNNElementFinder.h"
  2. #import <React/RCTRootView.h>
  3. #import <React/RCTUIManager.h>
  4. @implementation RNNElementFinder
  5. + (UIView *)findElementForId:(NSString *)elementId inView:(RCTRootView *)view {
  6. UIView* subView = [view.bridge.uiManager viewForNativeID:elementId withRootTag:view.reactTag];
  7. return subView;
  8. }
  9. @end