mirror of
https://github.com/status-im/react-native-languages.git
synced 2026-08-31 03:51:06 +00:00
41 lines
807 B
JavaScript
41 lines
807 B
JavaScript
// @flow
|
|
|
|
import React, { PureComponent } from 'react';
|
|
import { StyleSheet, Text, View } from 'react-native';
|
|
import { translate } from 'react-i18next';
|
|
|
|
class Root extends PureComponent {
|
|
render() {
|
|
return (
|
|
<View style={styles.container}>
|
|
<Text style={styles.title}>{this.props.t('title')}</Text>
|
|
|
|
<Text style={styles.line}>
|
|
{this.props.t('current', {
|
|
language: this.props.i18n.language
|
|
})}
|
|
</Text>
|
|
</View>
|
|
);
|
|
}
|
|
}
|
|
|
|
const styles = StyleSheet.create({
|
|
container: {
|
|
flex: 1,
|
|
backgroundColor: '#F5FCFF',
|
|
paddingHorizontal: 10,
|
|
paddingVertical: 30
|
|
},
|
|
title: {
|
|
fontSize: 20,
|
|
marginBottom: 10
|
|
},
|
|
line: {
|
|
color: '#333333',
|
|
marginBottom: 5
|
|
}
|
|
});
|
|
|
|
export default translate('common')(Root);
|