🚀 Big News:Socket Has Acquired Secure Annex.Learn More
Socket
Book a DemoSign in
Socket

@rodrigo2392/react-native-emoji-modal

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@rodrigo2392/react-native-emoji-modal

Biblioteca de react native para la selección de emojis

latest
Source
npmnpm
Version
0.1.7
Version published
Maintainers
1
Created
Source

Resumen

Biblioteca de react native para desplegar un modal y seleccionar un emoji, con búsqueda en inglés o español. Basado en el repositorio https://github.com/Majiedo/react-native-emojis-picker

light themedark theme

Instalación

npm install @rodrigo2392/react-native-emoji-modal

Uso

Se utiliza la biblioteca https://github.com/gorhom/react-native-portal así que deberás agregar el proveedor en el tope de tu aplicación, si ya estás usando esta biblioteca no será necesario

import {
  EmojiModal,
  EmojiProvider,
} from '@rodrigo2392/react-native-emoji-modal';
// ...

    <EmojiProvider>
        <App>
    </EmojiProvider>

// ....
    <EmojiModal
        columns={12}
        onSelect={(val: string) => {
            setEmoji(val);
            setVisible(false);
        }}
        setVisible={setVisible}
        visible={visible}
    />

Props

PropTipoDefectoDescripción
columnsnumber10Cantidad de emojis a mostrar por fila
onSelectfuncFunción llamada al seleccionar el emoji.
setVisiblefuncFunción para cerrar el modal, debe pasar un bool como arg
visibleboolfalseEstado del modal
languageestring"es"Lenguage para buscar emojis, es(español) o en(inglés)
noResultTextestring"Ningún resultado"Texto para indicar que no hay resultados de búsqueda
searchPlaceholderestring"Buscar emoji"Texto de placeholder para el campo de búsqueda
darkboolfalseAplica un modo oscuro a los elementos
opacitynumber0.5Opacidad del fondo 0 - 1
zIndexnumber99999zIndex para el modal completo

Licencia

MIT

Keywords

react-native

FAQs

Package last updated on 18 Jul 2024

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