npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

react-native-emoji-chooser

v0.1.11

Published

A customizable emoji picker for React Native

Readme

React Native Emoji Chooser

A customizable and lightweight Emoji Picker component for React Native applications, built to provide a seamless emoji selection experience with support for multiple languages, themes, and layouts.

Features

  • Render: Render within bottom sheet or as a standalone view
  • Customizable Themes: Supports light and dark modes with deep partial theme customization.
  • Multi-language Support: Configurable translations for category names and text input placeholders.
  • Flexible Layout: Adjustable column count for emoji grid display.
  • Recent Emojis: Automatically tracks and displays recently used emojis.
  • 400+ Emojies: Emojies sourced from emoji-datasource
  • Compatible with gifted chat

Installation

npm install react-native-emoji-chooser

Usage

Below is an example of how to integrate the Emoji Picker into your React Native application using a bottom sheet modal.

import { Button, StyleSheet, Text, View } from 'react-native';
import EmojiPicker from 'react-native-emoji-chooser';
import { GestureHandlerRootView } from 'react-native-gesture-handler';
import { BottomSheetModal, BottomSheetModalProvider, BottomSheetView } from '@gorhom/bottom-sheet';
import { useCallback, useRef, useState } from 'react';
import { StatusBar } from 'expo-status-bar';

export default function App() {
  const bottomSheetModalRef = useRef<BottomSheetModal>(null);

  const [language, setLanguage] = useState('en');
  const [theme, setTheme] = useState<'light' | 'dark'>('light');

  const handlePresentModalPress = useCallback(() => {
    bottomSheetModalRef.current?.present();
  }, []);

  const onSelect = (emoji: string) => {
    console.log('Selected emoji:', emoji);
  };

  return (
    <GestureHandlerRootView>
      <StatusBar style={theme === 'light' ? 'light' : 'dark'} />
      <BottomSheetModalProvider>
         <View style={[styles.container, { backgroundColor: theme === 'light' ? '#fff' : '#000' }]}>
          <Button
            title="Open Emoji Picker"
            onPress={handlePresentModalPress}
          />
           <Button
            title="Change Language"
            onPress={() => setLanguage(language === 'en' ? 'uk' : 'en')}
          />
          <Button
            title="Change Theme"
            onPress={() => setTheme(theme === 'light' ? 'dark' : 'light')}
          />
        </View>
        <BottomSheetModal
          ref={bottomSheetModalRef}
          handleIndicatorStyle={{ backgroundColor: theme === 'light' ? '#000' : '#fff' }}
          backgroundStyle={{ backgroundColor: theme === 'light' ? '#fff' : '#111827' }}
          enableDynamicSizing
          enablePanDownToClose={true}
        >
          {/* Fixed haight is required so its work with bottom sheet */}
          <BottomSheetView style={{ height: 700 }}>
            <EmojiPicker
              onSelect={onSelect}
              mode={theme}
              lang={language}
              columnCount={6}
              theme={{
                light: {
                  toolbar: {
                    container: {
                      paddingBottom: 24,
                    }
                  }
                },
                dark: {
                  toolbar: {
                    container: {
                      paddingBottom: 24,
                    }
                  }
                }
              }}  
            />
          </BottomSheetView>
        </BottomSheetModal>
      </BottomSheetModalProvider>
    </GestureHandlerRootView>
  );
}

const styles = StyleSheet.create({
  container: {
    flex: 1,
    backgroundColor: '#fff',
    justifyContent: 'center',
    alignItems: 'center',
  },
});

Props

EmojiPickerProps

| Prop | Type | Description | Default | |-----------------|-----------------------------------------|-----------------------------------------------------------------------------|----------------| | mode | 'light' \| 'dark' | Theme mode for the emoji picker. | 'light' | | theme | DeepPartial<ModedTheme> | Custom theme configuration for light or dark mode. | {} | | columnCount | number | Number of columns in the emoji grid. | 6 | | translation | DeepPartial<Translation> | Custom translations for categories and text input placeholder. | {} | | lang | string | Language code for translations (e.g., 'en', 'uk'). | 'en' | | onSelect | (emoji: string) => void | Callback function triggered when an emoji is selected. | Required | | toolbarProps | Pick<ToolbarProps, 'iconWidth'> | Props for customizing the toolbar. | {} | | searchBarProps | Partial<TextInputProps> | Props for customizing the searchbar. | {} |

Types

Translation

Structure for language-specific translations:

export interface TranslationLangObject {
  categories: Record<Category, string>;
  textInput: {
    placeholder: string;
  };
}

export type Translation = Record<string, TranslationLangObject>;

Theme

Structure for theme configuration:

export interface Theme {
  toolbar: {
    icon: {
      defaultColor: string;
      activeColor: string;
    };
    container: StyleProp<ViewStyle>;
  };
  searchbar: {
    container?: StyleProp<ViewStyle>;
    textInput: StyleProp<TextStyle>;
    placeholderColor: string;
  };
  flatList: {
    container?: StyleProp<ViewStyle>;
    section: {
      header: StyleProp<TextStyle>;
    }
  }
}

ModedTheme

Structure for light and dark mode themes:

export interface ModedTheme {
  light: Theme;
  dark: Theme;
}

Contributing

Contributions are welcome! Please submit a pull request or open an issue on the GitHub repository for bug reports, feature requests, or improvements.

License

This project is licensed under the MIT License.