-
Notifications
You must be signed in to change notification settings - Fork 11
/
index.d.ts
32 lines (25 loc) · 823 Bytes
/
index.d.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
// Type definitions for react-native-user-identity 1.5.1
// Project: https://github.com/juliandramirez/react-native-user-identity
// Definitions by: wwdrew <https://github.com/wwdrew>
// TypeScript Version: 3.8
declare module "react-native-user-identity" {
export const ICLOUD_ACCESS_ERROR: string;
type IosUserConfirmationOptions = {
title?: string;
message?: string;
signInButtonText?: string;
cancelButtonText?: string;
}
export type UserIdOptions = {
iosUserConfirmation?: boolean | IosUserConfirmationOptions;
androidAccountSelectionMessage?: string;
}
const RNUserIdentity: RNUserIdentity;
export interface RNUserIdentity {
/**
* Get the user ID value.
*/
getUserId(options: UserIdOptions): Promise<string | null>;
}
export default RNUserIdentity;
}