react-native-navigation的迁移库

12345678910111213141516171819202122232425262728293031
  1. #import <React/RCTViewManager.h>
  2. #import "RNNElement.h"
  3. #import "RNNElementView.h"
  4. @interface RNNElement()
  5. @end
  6. @implementation RNNElement
  7. RCT_CUSTOM_VIEW_PROPERTY(elementId, NSString, RNNElement)
  8. {
  9. [(RNNElementView*)view setElementId:json];
  10. }
  11. RCT_CUSTOM_VIEW_PROPERTY(resizeMode, NSString, RNNElement)
  12. {
  13. [(RNNElementView*)view setResizeMode:json];
  14. }
  15. RCT_EXPORT_MODULE();
  16. - (RNNElementView *)view
  17. {
  18. RNNElementView* element = [[RNNElementView alloc] init];
  19. return element;
  20. }
  21. @end