nativescript-emoji-picker😃
There are many emoji pickers for angular and the web, but no one for NativeScript?! Let's change this!
How it looks like
Keyboard view | Emoji picker view |
---|---|
As this plugin is currently in developement screenshots will be added later this year.
Limitation
The emoji picker currently only supports Android. An IOS version is in development.
Installation
Install the plugin using tns plugin add nativescript-emoji-picker
Usage
How does it work?
This plugin will give you two elements, EmojiPicker
and EmojiLabel
. The first one will give you an editable textfield (very similar to the NativeScript TextField) and the second one is a label (similar to NativeScript Label), which will display your emojis in the text correctly.
NativeScript Core:
Define the namespace
Use the plugin:
On the JS / TS Side you can toggle the keyboard or the popup window of the edit text field like this:
;page.getViewById"myEmojiPicker".togglePopup;
The <EmojiPicker>
class extends the TextField
NativeScript class, which means that all of TextField's properties and methods are supported.
It is the same with <EmojiLabel>
and the Label
class.
You can add custom styles by using ids, classes or the tag selector in (s)css:
For more info and examples check out the demo folder.
Angular Version:
In your app.module.ts
include the library like so:
;
and add it to the imports array:
The use it in your .html file:
On the TS Side you can toggle the keyboard or the popup window of the edit text field like this:
The <EmojiPicker>
class extends the TextField
NativeScript class, which means that all of TextField's properties and methods are supported.
It is the same with <EmojiLabel>
and the Label
class.
You can add custom styles by using ids, classes or the tag selector in (s)css:
For more info and examples check out the demo-angular folder.
License
MIT