-
Notifications
You must be signed in to change notification settings - Fork 113
/
index.d.ts
41 lines (37 loc) · 1.04 KB
/
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
33
34
35
36
37
38
39
40
41
declare module "react-native-emoji-selector" {
import * as React from "react";
/**
* Categories
* The package itself exports a dictionary of objects, however
* to to enforce usage of the exported dictionary the types
* just simplifies to an enum. Once compiled it runs the
* same because the export is named the same.
*/
export enum Categories {
all = "all",
history = "history",
emotion = "emotion",
people = "people",
nature = "nature",
food = "food",
activities = "activities",
places = "places",
objects = "objects",
symbols = "symbols",
flag = "flag"
}
export interface EmojiSelectorProps {
onEmojiSelected(emoji: string): void;
theme?: string;
placeholder?: string;
showTabs?: boolean;
showSearchBar?: boolean;
showHistory?: boolean;
showSectionTitles?: boolean;
category?: Categories;
columns?: number;
shouldInclude?: (e: any)=>boolean;
}
const EmojiSelector: React.ComponentType<EmojiSelectorProps>;
export default EmojiSelector;
}