<commit_before>// @flow

import * as React from 'react'
import * as Icons from '@hawkrives/react-native-alternate-icons'
import glamorous from 'glamorous-native'

import {lookup as getAppIcon} from '../../../images/icon-images'

const LogoImage = glamorous.image({
	width: 100,
	height: 100,
	alignSelf: 'center',
})

type Props = {
	style?: StyleSheet,
}

type State = {
	icon: number,
}

export class AppLogo extends React.Component<Props, State> {
	state = {
		icon: getAppIcon('default'),
	}

	async componentWillMount() {
		const name = await Icons.getIconName()
		console.warn(name)
		this.setState(() => ({icon: getAppIcon(name)}))
	}

	render() {
		console.warn(this.state.icon)
		return <LogoImage source={this.state.icon} style={this.props.style} />
	}
}<commit_msg>Cleanup console warnings in app logo component<commit_after>// @flow

import * as React from 'react'
import * as Icons from '@hawkrives/react-native-alternate-icons'
import glamorous from 'glamorous-native'

import {lookup as getAppIcon} from '../../../images/icon-images'

const LogoImage = glamorous.image({
	width: 100,
	height: 100,
	alignSelf: 'center',
})

type Props = {
	style?: StyleSheet,
}

type State = {
	icon: number,
}

export class AppLogo extends React.Component<Props, State> {
	state = {
		icon: getAppIcon('default'),
	}

	async componentWillMount() {
		const name = await Icons.getIconName()
		this.setState(() => ({icon: getAppIcon(name)}))
	}

	render() {
		return <LogoImage source={this.state.icon} style={this.props.style} />
	}
}
{'fraction_non_alphanumeric': 0.15404699738903394, 'fraction_numerical': 0.007832898172323759, 'mean_word_length': 4.268041237113402, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 9, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7565899', 'n_tokens_mistral': 554, 'n_tokens_neox': 524, 'n_words': 132}