Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/numandev1/react-native-emoji-hook

Write emoji by emoji code :D = 😄
https://github.com/numandev1/react-native-emoji-hook

android editor emoji emoji-editor emoji-textinput emojis facebook facebook-emoji hook ios react-native textinput web website

Last synced: 3 months ago
JSON representation

Write emoji by emoji code :D = 😄

Awesome Lists containing this project

README

        


alt text


Write emoji by emoji code




# [Demo](https://distracted-wilson-9627b2.netlify.app/)

## Installation

```sh
npm install react-native-emoji-hook
```

## Usage

```js
import useEmoji, { emojify } from 'react-native-emoji-hook';

// ...

const [text, setText] = useEmoji();
```

**emojify** function is not hook it is basically text to emoji text converter. you can use this for making own custom useState.

## Example Code

```
import * as React from 'react';

import { StyleSheet, View, TextInput } from 'react-native';
import useEmoji from 'react-native-emoji-hook';

export default function App() {
const [text, setText] = useEmoji();
return (



);
}

const styles = StyleSheet.create({
container: {
flex: 1,
alignItems: 'center',
justifyContent: 'center',
},
input: {
width: '100%',
height: 100,
backgroundColor: 'gray',
fontSize: 30,
},
});
```

## Contributing

See the [contributing guide](CONTRIBUTING.md) to learn how to contribute to the repository and the development workflow.

## License

MIT