
Security News
High Salaries No Longer Enough to Attract Top Cybersecurity Talent
A survey of 500 cybersecurity pros reveals high pay isn't enough—lack of growth and flexibility is driving attrition and risking organizational security.
react-native-emoji-picker
Advanced tools
Powered by the awesome emojilib
npm install react-native-emoji-picker
const EmojiPicker = require('react-native-emoji-picker');
class Main extends React.Component {
_emojiSelected(emoji) {
console.log(emoji)
}
render() {
return (
<View style={styles.container}>
<EmojiPicker
style={styles.emojiPicker}
onEmojiSelected={this._emojiSelected}/>
</View>
);
}
}
onEmojiSelected
(Function) - Required. Called when the user taps on an emoji.style
(Object) - Optional. Standard view style for the enclosing component.clearButtonText
(String) - Optional. Alternate text for the clear button. Defaults to 'Clear'.hideClearButton
(Bool) - Optional. Hide the clear button.rows
(Number) - Optional. Number of rows used to show all emojis. Defaults to 7.Optional overlay which wraps the picker in a modal-like component
const { EmojiOverlay } = require('react-native-emoji-picker');
class Main extends React.Component {
state = {
showPicker: false,
}
_emojiSelected(emoji) {
this.setState({showPicker: false})
console.log(emoji)
}
render() {
return (
<View style={styles.container}>
<TouchableHighlight
onPress={() => this.setState({showPicker: true})}>
<Text> Show picker </Text>
</TouchableHighlight>
<EmojiOverlay
style={styles.emojiPicker}
visible={this.state.showPicker}
onTapOutsize={() => this.setState({showPicker: false})}
horizontal={true}
onEmojiSelected={this._emojiSelected}/>
</View>
);
}
}
visible
(Bool) - Required. Is the overlay visibleonTapOutsize
(Function) - Required. Callback for when user taps outside the EmojiPicker area. Should set visible
to false
FAQs
Simple emoji picker for react-native
The npm package react-native-emoji-picker receives a total of 201 weekly downloads. As such, react-native-emoji-picker popularity was classified as not popular.
We found that react-native-emoji-picker demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
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.
Security News
A survey of 500 cybersecurity pros reveals high pay isn't enough—lack of growth and flexibility is driving attrition and risking organizational security.
Product
Socket, the leader in open source security, is now available on Google Cloud Marketplace for simplified procurement and enhanced protection against supply chain attacks.
Security News
Corepack will be phased out from future Node.js releases following a TSC vote.