
#import "RNLibreactcore.h"

#import "IOSNativeToast.h"
@interface RNLibreactcore()
@property (nonatomic, retain) IOSNativeToast *toast;
@end

@implementation RNLibreactcore

- (instancetype)init {
  self = [super init];
  if (self) {
    self.toast = [[IOSNativeToast alloc] init];
  }
  return self;
}

+ (BOOL)requiresMainQueueSetup
{
  return YES;
}
RCT_EXPORT_METHOD(show:(NSString *)text)
{
  [self.toast showToast:text];
}
@end
  
