# react-native-super-emojis

> A react native library to render all current emojis, on any size

Latest version **0.2.1** (published 2023-03-16) · MIT license · 0 weekly downloads

## Install

```sh
npm install react-native-super-emojis
pnpm add react-native-super-emojis
yarn add react-native-super-emojis
bun add react-native-super-emojis
```

## Health

**Score 30/100 (F)** — status: abandoned.

Positive: has types; esm support; no vulnerabilities; high quality score.

Warnings: low downloads; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.2.1 |
| Published | 2023-03-16 |
| First published | 2023-02-28 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Node | >= 16.0.0 |
| Dependencies | 1 |
| Unpacked size | 887.8 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1 |
| Author | leongdev |
| Maintainers | leongdev |
| Keywords | react-native, ios, android |

## Links

- npm: https://www.npmjs.com/package/react-native-super-emojis
- Repository: https://github.com/leongdev/react-native-super-emojis
- Homepage: https://github.com/leongdev/react-native-super-emojis#readme
- Issues: https://github.com/leongdev/react-native-super-emojis/issues
- npm.io page: https://npm.io/package/react-native-super-emojis

## Dependencies (1)

- [@expo/webpack-config](https://npm.io/package/@expo/webpack-config.md) ^18.0.1

## Alternatives

- [@sindresorhus/slugify](https://npm.io/package/@sindresorhus/slugify.md) — 3.7M weekly downloads
- [solid-js](https://npm.io/package/solid-js.md) — 2.7M weekly downloads
- [expo-glass-effect](https://npm.io/package/expo-glass-effect.md) — 2.5M weekly downloads
- [nanoassert](https://npm.io/package/nanoassert.md) — 780.8K weekly downloads
- [@ffmpeg/ffmpeg](https://npm.io/package/@ffmpeg/ffmpeg.md) — 529.5K weekly downloads

## Recent versions

- 0.2.1 (latest) — 2023-03-16
- 0.2.0 — 2023-03-16
- 0.1.4 — 2023-03-13
- 0.1.3 — 2023-03-01
- 0.1.2 — 2023-03-01
- 0.1.0 — 2023-02-28

## README

# React Native Super Emojis 🦸‍♂️✨🦸‍♀️✨🦸

A react native library to render all current emojis, on any size!

![Alt Text](https://media.giphy.com/media/ouYnuXx3uXy5hi67bU/giphy.gif)
![Alt Text](https://media.giphy.com/media/BSJ1nHeTIvLhbNW9hz/giphy.gif)

## Features

- Search Emojis:
  - You can search by description
  - Search by tags (coming soon)
- Customizable Sections:
  - Customize section titles or add new elements such as subtitles or any node below the title.
  - Display specific sections or render all icons at once.
- Customizable Columns:
  - You can change the number of columns.
- Hook to get all icons database and build your custom list.
- Select icons.

## Installation

```sh
npm install react-native-super-emojis
```

or

```sh
yarn add react-native-super-emojis
```

## Usage

```ts
import { EmojiList } from 'react-native-super-emojis';

const sections = [
  'Smileys & Emotion',
  'People & Body',
  'Animals & Nature',
  'Food & Drink',
  'Travel & Places',
  'Activities',
  'Objects',
  'Symbols',
  'Flags',
];

const [emojiName, setEmojiName] = useState('')

<EmojiList
  sectionsList={sections}
  numberOfColumns={7}
  searchEmoji={emojiName}
/>
```

## Props

| Prop name                    | Description                                      | Type                     | Required | Default     |
| ---------------------------- | ------------------------------------------------ | ------------------------ | -------- | ----------- |
| `onSelectEmoji`              | Function called when the user selects an emoji   | `(name: string) => void` | false    | `undefined` |
| `searchEmoji`                | Define the name of the emoji you are searching   | `string`                 | false    | `undefined` |
| `numberOfColumns`            | Define the number of columns of the emoji matrix | `number`                 | false    | `undefined` |
| `emojiSize`                  | Define the size of all emojis                    | `number`                 | false    | `undefined` |
| `emojiBoxStyle`              | Custom style for the emoji parent view           | `ViewStyle`              | false    |             |
| `emojiListStyle`             | Custom style for the entire emoji list matrix    | `ViewStyle`              | false    |             |
| `sectionSelectedIndex`       | Define the selected section by index             | `number`                 | false    | `undefined` |
| `sectionsList`               | Divide the icons in 9 sections                   | `string[]`               | false    | `undefined` |
| `sectionNode`                | Adds any React Node below the section title      | `ReactNode`              | false    | `undefined` |
| `sectionsStyle`              | Custom style for the section parent view         | `ViewStyle`              | false    |             |
| `sectionsTextStyle`          | Custom style for the section title               | `TextStyle`              | false    |             |
| `sectionsTextContainerStyle` | Custom style for the section title parent view   | `ViewStyle`              | false    |             |

## Hooks

| Hook name    | Description                           | Type                |
| ------------ | ------------------------------------- | ------------------- |
| `useIconsDB` | Hook to return all the icons database | `()=> IEmojiItem[]` |

## Made with ❤️ by [@leongdev](https://leongdev.com/)

✨ `react-native-super-emojis` is a personal project made to be used on my other personal projects and I hope that this small lib can help people with the same problem that I faced developing my apps!

## License

MIT

---

---
_Source: https://npm.io/package/react-native-super-emojis · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
