2.0.4 • Published 4 years ago

react-native-emoji-dialog v2.0.4

Weekly downloads
1
License
MIT
Repository
github
Last release
4 years ago

This package provides you a different approach when you display a dialog in your Android & iOS application. If you want to contribute this package, please fork and create a pull request.

Installation

$ npm install react-native-emoji-dialog

or

$ yarn add react-native-emoji-dialog

And add the dependent package and link this.

$ yarn add react-native-linear-gradient --dev
$ react-native link react-native-linear-gradient

Android

iOS

Install BVLinearGradient for UIManager as below.

$ cd projectName/ios
$ pod install

Usage

import EmojiDialog from 'react-native-emoji-dialog/';
import { pouting } from 'react-native-emoji-dialog/emojis';

<EmojiDialog
   type="primary"
   emoji={pouting}
   title="Title"
   message="Lorem ipsum dolor sit amet, consectetur adipiscing elit."
   button={{
      id: 0,
      text: 'okay!',
      onClick: () => Alert.alert('Button clicked!'),
   }}
   visible
/>;

Click here to see the full emoji list.

Props

Prop NameValue TypeDescription
typeprimary - secondaryIt declares type of dialog
emojiIEmojiAn interface and it provides you variables of an emoji
messagestringIt provides you give a message as content to dialog
sizenumberEmoji's height and width
buttonIButtonAn interface and it provides you variables of an your button
visiblebooleanIt provides when you make dialog able to visible
colorsstring[] - number[]You can give to the background of dialog your custom colors as gradient
onBackgroundClickvoidYou can control when clicked to background

Development Dependencies

License

Copyright (c) 2019 Furkan Bozdag

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

2.0.3

4 years ago

2.0.2

4 years ago

2.0.4

4 years ago

2.0.1

4 years ago

2.0.0

4 years ago

1.0.10

5 years ago

1.0.9

5 years ago

1.0.8

5 years ago

1.0.7

5 years ago

1.0.6

5 years ago

1.0.5

5 years ago

1.0.4

5 years ago

1.0.3

5 years ago

1.0.2

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago