123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354 |
- using ReactNative.Bridge;
- using ReactNative.Modules.Core;
- using ReactNative.UIManager;
- using System;
- using System.Collections.Generic;
-
- namespace RNViewShot
- {
- /// <summary>
- /// Package defining core framework modules (e.g., <see cref="UIManagerModule"/>).
- /// It should be used for modules that require special integration with
- /// other framework parts (e.g., with the list of packages to load view
- /// managers from).
- /// </summary>
- public class RNViewShotPackage : IReactPackage
- {
- /// <summary>
- /// Creates the list of native modules to register with the react
- /// instance.
- /// </summary>
- /// <param name="reactContext">The react application context.</param>
- /// <returns>The list of native modules.</returns>
- public IReadOnlyList<INativeModule> CreateNativeModules(ReactContext reactContext)
- {
- return new List<INativeModule>
- {
- new RNViewShotModule(reactContext),
- };
- }
-
- /// <summary>
- /// Creates the list of JavaScript modules to register with the
- /// react instance.
- /// </summary>
- /// <returns>The list of JavaScript modules.</returns>
- public IReadOnlyList<Type> CreateJavaScriptModulesConfig()
- {
- return new List<Type>(0);
- }
-
- /// <summary>
- /// Creates the list of view managers that should be registered with
- /// the <see cref="UIManagerModule"/>.
- /// </summary>
- /// <param name="reactContext">The react application context.</param>
- /// <returns>The list of view managers.</returns>
- public IReadOnlyList<IViewManager> CreateViewManagers(
- ReactContext reactContext)
- {
- return new List<IViewManager>(0);
- }
- }
- }
|