New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

react-native-twemojis

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-native-twemojis

Replace emojis with Twemojis in your next React Native app.

latest
Source
npmnpm
Version
1.0.1
Version published
Weekly downloads
29
81.25%
Maintainers
1
Weekly downloads
 
Created
Source

😁 react-native-twemojis 📦

npm npm GitHub Workflow Status GitHub Workflow Status

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

🧰 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 (
        <TwemojiText>
            Hello world! 🌎
        </TwemojiText>
    );
}

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.

Keywords

react

FAQs

Package last updated on 27 Dec 2020

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts