forked from arronhunt/react-native-emoji-selector
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.d.ts
39 lines (35 loc) · 1000 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
33
34
35
36
37
38
39
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',
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;
}
const EmojiSelector: React.ComponentType<EmojiSelectorProps>;
export default EmojiSelector;
}