exclude-unsupported-native-emojis
Etienne Lemay 2016-05-31 15:16:48 -04:00
parent 895a31fecd
commit fed3733eb4
1 changed files with 5 additions and 6 deletions

View File

@ -9,12 +9,11 @@ export default class Emoji extends React.Component {
this.emoji = data.emojis[this.props.emoji]
}
shouldComponentUpdate(props) {
if (props.size != this.props.size || props.sheetURL != this.props.sheetURL) {
return true
}
return false
shouldComponentUpdate(nextProps) {
return (
nextProps.size != this.props.size ||
nextProps.sheetURL != this.props.sheetURL
)
}
getSheetSize() {