Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/tomekkleszcz/react-native-twemojis

Replace emojis with Twemojis in your next React Native app.
https://github.com/tomekkleszcz/react-native-twemojis

emoji emojis native react replace twemoji twemojis

Last synced: 2 months ago
JSON representation

Replace emojis with Twemojis in your next React Native app.

Awesome Lists containing this project

README

        

# 😁 react-native-twemojis 📦

[![npm](https://img.shields.io/npm/v/react-native-twemojis)](https://www.npmjs.com/package/react-native-twemojis)
![npm](https://img.shields.io/npm/dm/react-native-twemojis)
![GitHub Workflow Status](https://img.shields.io/github/workflow/status/tomekkleszcz/react-native-twemojis/Publish)
![GitHub Workflow Status](https://img.shields.io/github/workflow/status/tomekkleszcz/react-native-twemojis/Tests?label=tests)

Replace emojis with Twemojis in your next React Native app.

## 📥 Installation

`npm install react-native-twemojis`

or

`yarn add react-native-twemojis`

## 👀 Demo

At the top there is `Text` component rendered on iOS device, and at the bottom there is rendered `TwemojiText` component.

![React Native Swipe Slider demo](demo/demo.png)

## 🧰 Usage

The `TwemojiText` component behaves just like `Text` component, but replaces all the emojis with their Twemoji equivalent.

```
import TwemojiText from 'react-native-twemojis';

const Component = () => {
return (

Hello world! 🌎

);
}
```

The `TwemojiText` component accepts all `Text` props by default. If you want to customize the styling of the Twemojis there is a `twemojiStyle` prop which accepts `Image` styling.