public static void Emit(ReactApplicationContext context, string name, Java.Lang.Object data)
        {
            Java.Lang.Class           emitterClass = Java.Lang.Class.FromType(typeof(IRCTNativeAppEventEmitter));
            Java.Lang.Object          module       = context.GetJSModule(emitterClass);
            IRCTNativeAppEventEmitter emitter      = Android.Runtime.Extensions.JavaCast <IRCTNativeAppEventEmitter>(module);

            emitter.Emit(name, data);
        }
 public IList <INativeModule> CreateNativeModules(ReactApplicationContext reactContext)
 {
     return(new List <INativeModule>
     {
         new ToastModule(reactContext),
         new RandomNumberModule(reactContext)
     });
 }
 public BackgroundTimerModule(ReactApplicationContext reactContext)
 {
     super(reactContext);
     this.reactContext = reactContext;
 }
 public EventsModule(ReactApplicationContext context)
     : base(context)
 {
 }
 public RandomNumberModule(ReactApplicationContext context)
     : base(context)
 {
 }
Esempio n. 6
0
 public ToastModule(ReactApplicationContext context)
     : base(context)
 {
 }
 public IList <ViewManager> CreateViewManagers(ReactApplicationContext reactContext)
 {
     return(new List <ViewManager>());
 }