Files
react-native-securerandom/windows/RNSecureRandom/RNSecureRandomPackage.cs
T

54 lines
1.8 KiB
C#
Raw Permalink Normal View History

2017-10-11 17:27:00 +01:00
using ReactNative.Bridge;
using ReactNative.Modules.Core;
using ReactNative.UIManager;
using System;
using System.Collections.Generic;
2017-10-11 19:33:26 +01:00
namespace Net.Rhogan.RNSecureRandom
2017-10-11 17:27:00 +01:00
{
/// <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>
2017-10-11 19:33:26 +01:00
public class RNSecureRandomPackage : IReactPackage
2017-10-11 17:27:00 +01:00
{
/// <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>
{
2017-10-11 19:33:26 +01:00
new RNSecureRandomModule(),
2017-10-11 17:27:00 +01:00
};
}
/// <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);
}
}
}