Skip to content

Commit

Permalink
Merge pull request #10 from arronhunt/development
Browse files Browse the repository at this point in the history
v0.1.7
  • Loading branch information
arronhunt authored Apr 7, 2019
2 parents 9487c62 + 704201b commit 1f632a4
Show file tree
Hide file tree
Showing 7 changed files with 1,218 additions and 689 deletions.
2 changes: 1 addition & 1 deletion example/app.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"name": "example",
"slug": "example",
"privacy": "public",
"sdkVersion": "31.0.0",
"sdkVersion": "32.0.0",
"platforms": [
"ios",
"android"
Expand Down
11 changes: 6 additions & 5 deletions example/module.js
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,7 @@ const TabBar = ({ theme, activeCategory, onPress }) => {
}}
>
<Text style={{
color: '#000000',
textAlign: 'center',
paddingBottom: 8,
fontSize: (tabSize) - 24
Expand All @@ -107,7 +108,7 @@ const EmojiCell = ({ emoji, colSize, ...other }) => (
}}
{...other}
>
<Text style={{ color: '#FFFFFF', fontSize: (colSize) - 12 }}>
<Text style={{ color: '#000000', fontSize: (colSize) - 12 }}>
{ charFromEmojiObject(emoji) }
</Text>
</TouchableOpacity>
Expand Down Expand Up @@ -240,7 +241,7 @@ export default class EmojiSelector extends Component {
let name = Categories[c].name;
emojiList[name] = sortEmoji(emojiByCategory(name));
});
console.log('Prerendered emojis');

this.setState({
emojiList,
colSize: Math.floor(width / this.props.columns)
Expand All @@ -251,18 +252,18 @@ export default class EmojiSelector extends Component {
// LIFECYCLE METHODS
//
componentDidMount() {
const { category } = this.props;
const { category, showHistory } = this.props;
this.setState({ category });

if (this.props.showHistory) {
if (showHistory) {
this.loadHistoryAsync();
}

this.prerenderEmojis(() => {
this.setState({ isReady: true })
});
}

render() {
const {
theme,
Expand Down
Loading

0 comments on commit 1f632a4

Please sign in to comment.