ViewShot.cs 509B

123456789101112131415161718192021222324252627
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.Threading.Tasks;
  6. using ReactNative.UIManager;
  7. namespace RNViewShot
  8. {
  9. public class ViewShot : IUIBlock
  10. {
  11. private int tag;
  12. public ViewShot(int tag)
  13. {
  14. this.tag = tag;
  15. }
  16. public void Execute(NativeViewHierarchyManager nvhm)
  17. {
  18. var view = nvhm.ResolveView(this.tag);
  19. string depObj = view.ToString();
  20. }
  21. }
  22. }