UNPKG

533 BPlain TextView Raw
1//Copyright (c) 2019 Facebook. All rights reserved.
2
3import Foundation
4
5public enum RNSignInState: Int {
6 case SIGNED_IN
7 case SIGNED_OUT
8 case SESSION_EXPIRED
9 case SESSION_INVALID
10 case UNKNOWN
11 case NEED_VERIFY_OTP
12 case NEED_REGISTER_PHONE
13 var name: String {
14 let mirror = Mirror(reflecting: self)
15 if let label = mirror.children.first?.label {
16 return label
17 } else {
18 return String(describing:self)
19 }
20 }
21}
22
23extension RNSignInState : CaseIterable{}