Aucune description

MainPage.cs 1.1KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. using ReactNative;
  2. using ReactNative.Modules.Core;
  3. using ReactNative.Shell;
  4. using RNViewShot;
  5. using System.Collections.Generic;
  6. using ReactNativeVideo;
  7. namespace ViewShotExample
  8. {
  9. class MainPage : ReactPage
  10. {
  11. public override string MainComponentName
  12. {
  13. get
  14. {
  15. return "ViewShotExample";
  16. }
  17. }
  18. #if BUNDLE
  19. public override string JavaScriptBundleFile
  20. {
  21. get
  22. {
  23. return "ms-appx:///ReactAssets/index.windows.bundle";
  24. }
  25. }
  26. #endif
  27. public override List<IReactPackage> Packages
  28. {
  29. get
  30. {
  31. return new List<IReactPackage>
  32. {
  33. new MainReactPackage(),
  34. new RNViewShotPackage(),
  35. new ReactVideoPackage(),
  36. };
  37. }
  38. }
  39. public override bool UseDeveloperSupport
  40. {
  41. get
  42. {
  43. #if !BUNDLE || DEBUG
  44. return true;
  45. #else
  46. return false;
  47. #endif
  48. }
  49. }
  50. }
  51. }