Go to file
Jakub Grzywacz cf77277802
chore: add category customization props
2021-07-10 12:05:18 +02:00
.circleci chore: initial commit 2021-07-03 19:51:30 +02:00
example fix: android RNGH 2021-07-08 20:17:20 +02:00
scripts chore: initial commit 2021-07-03 19:51:30 +02:00
src chore: add category customization props 2021-07-10 12:05:18 +02:00
.editorconfig chore: initial commit 2021-07-03 19:51:30 +02:00
.gitattributes chore: initial commit 2021-07-03 19:51:30 +02:00
.gitignore chore: initial commit 2021-07-03 19:51:30 +02:00
.yarnrc chore: initial commit 2021-07-03 19:51:30 +02:00
CONTRIBUTING.md chore: initial commit 2021-07-03 19:51:30 +02:00
LICENSE chore: initial commit 2021-07-03 19:51:30 +02:00
README.md chore: add category customization props 2021-07-10 12:05:18 +02:00
babel.config.js chore: initial commit 2021-07-03 19:51:30 +02:00
package.json refactor: add Icons 2021-07-08 10:31:27 +02:00
tsconfig.build.json chore: initial commit 2021-07-03 19:51:30 +02:00
tsconfig.json chore: initial commit 2021-07-03 19:51:30 +02:00
yarn.lock refactor: add Icons 2021-07-08 10:31:27 +02:00

README.md

react-native-emoji-keyboard

.

Usage

import EmojiPicker from '{package-name}';

export default function App() {
  const [isOpen, setIsOpen] = React.useState<boolean>(false);

  const handlePick = (emojiObject: EmojiType) => {
    console.log(emojiObject);
    /* example emojiObject = {    {
        "emoji": "❤️",
        "name": "red heart",
        "slug": "red_heart",
        "skin_tone_support": false,
        "unicode_version": "0.6",
        "emoji_version": "0.6"
      },
    */
  };

  return (
    <EmojiPicker
      onEmojiSelected={handleSelect}
      open={isOpen}
      onClose={() => setIsOpen(false)} />
  )
}

Installation

yarn add {package-name}

or

npm install {package-name}

Full Example

TODO

Accepted props (current implemented)

Name Type Default Value Required Description
onEmojiSelected function undefined yes Callback on emoji selected
open boolean false yes Opens modal picker
onClose function undefined yes Request close modal runs when onEmojiSelected or backdrop pressed
emojiSize number 28 no Custom emoji size
headerStyles TextStyle {} no Override category name styles
knobStyles ViewStyle {} no Override knob styles
containerStyles ViewStyle {} no Override container styles
hideHeader boolean false no Hide category names
expandable boolean true no Show knob and enable expand on swipe up
defaultHeight number 0.4 no Specify collapsed container height (1 is full screen height)
expandedHeight number 0.8 no Specify expanded container height (1 is full screen height) only if expandable is true
backdropColor string "#00000055" no Change backdrop color and alpha
categoryColor string "#000000" no Change category item color
activeCategoryColor string "#005b96" no Change active category item color
categoryContainerColor string "#e3dbcd" no Change category container color

License

MIT




TODO

categories => Specify displayed categories

language => Use translation

pixele albo procenty w wysokości