//
//  Created by Li Zheng on 2021/3/18.
//

#import "CustomController.h"
#import <ALBBOpenAccountCloud/ALBBOpenAccountSDK.h>
#import <IMSAccount/IMSAccountService.h>
#import <React/RCTUtils.h>

@implementation CustomController

- (IBAction)showEmailRegisterView {
  NSLog(@"AliLiving showEmailRegisterView");
  UIViewController *con = RCTPresentedViewController();
  UINavigationController *nav = (UINavigationController *)con;
  id uiService = ALBBService(ALBBOpenAccountUIService);
  [uiService showEmailRegisterInNavigationController:nav success:nil failure:nil];
}

- (IBAction)showEmailFindPasswordView {
    NSLog(@"AliLiving showEmailFindPasswordView");
    UIViewController *con = RCTPresentedViewController();
    UINavigationController *nav = (UINavigationController *)con;
    id uiService = ALBBService(ALBBOpenAccountUIService);
    [uiService showEmailFindPasswordInNavigationController:nav success:nil failure:nil];
}

@end
