Launch Week Day 1: Socket for Jira Is Now Available.Learn More
Socket
Book a DemoSign in
Socket

react-native-emoji-popup

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-native-emoji-popup

Emoji Popup for React Native

latest
Source
npmnpm
Version
0.3.3
Version published
Maintainers
1
Created
Source

react-native-emoji-popup 🌈

Emoji Popup for React Native, using native primitives.

mit licence npm version npm downloads npm downloads

https://github.com/user-attachments/assets/a6f94dc5-6175-419c-a6e4-04ef48aaf913

Installation

npm i react-native-emoji-popup

Usage

The API is simple, just wrap your component with the EmojiPopup component and pass a callback to the onEmojiSelected prop.

import { EmojiPopup } from 'react-native-emoji-popup';

export default function EmojiExample() {
  const [emoji, setEmoji] = useState('🫡');

  return (
    <View>
      <TextInput value={emoji} />
      <EmojiPopup onEmojiSelected={setEmoji}>
        <Text style={styles.buttonText}>Open Emoji Picker</Text>
      </EmojiPopup>
    </View>
  );
}

On Android, you can also pass a custom close button component to the closeButton prop.

import { EmojiPopup } from 'react-native-emoji-popup';

const CloseButton = ({ close }: { close: () => void }) => (
  <Pressable onPress={close}>
    <Text style={styles.buttonText}>Close ❌</Text>
  </Pressable>
);

export default function EmojiExample() {
  const [emoji, setEmoji] = useState('🫡');

  return (
    <View>
      <TextInput value={emoji} />
      <EmojiPopup
        onEmojiSelected={setEmoji}
        closeButton={CloseButton}
        style={styles.buttonText}
      >
        <Text style={styles.buttonText}>Open Emoji Picker</Text>
      </EmojiPopup>
    </View>
  );
}

Props

PropTypePlatformDescriptionDefault
childrenReact.ReactNodeiOS, AndroidThe component that will trigger the emoji picker when pressed-
onEmojiSelected(emoji: string) => voidiOS, AndroidCallback function that receives the selected emoji as a parameter-
closeButton(props: { close: () => void }) => React.ReactNodeAndroidCustom close button component that receives a close functionDefault close button
contentContainerStyleStyleProp<ViewStyle>AndroidStyle object for customizing the emoji picker container appearance-
styleStyleProp<ViewStyle>iOS, AndroidStyle object for the trigger component container-

Features

Dark Mode Support

The emoji picker automatically adapts to the device's color scheme on both platforms. On Android, you can customize the color scheme by passing a contentContainerStyle prop to the EmojiPopup component and specifying the backgroundColor property.

Contributing

See the contributing guide to learn how to contribute to the repository and the development workflow.

License

MIT

Acknowledgements

  • MCEmojiPicker - underlying iOS library.
  • Emoji2 - underlying Android library.

Made with create-react-native-library

Keywords

react-native

FAQs

Package last updated on 12 Aug 2025

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