Move the main App screen in the src folder
This commit is contained in:
parent
4ba92ea7a7
commit
1915faa94a
|
@ -1,16 +1,9 @@
|
||||||
// @ flow
|
// @ flow
|
||||||
|
|
||||||
import React, { Component } from 'react';
|
import React, { Component } from 'react';
|
||||||
|
import { Platform, StyleSheet, Text, ScrollView, View } from 'react-native';
|
||||||
import I18n, { getLanguages } from 'react-native-i18n';
|
import I18n, { getLanguages } from 'react-native-i18n';
|
||||||
|
|
||||||
import {
|
|
||||||
Platform,
|
|
||||||
StyleSheet,
|
|
||||||
Text,
|
|
||||||
ScrollView,
|
|
||||||
View,
|
|
||||||
} from 'react-native';
|
|
||||||
|
|
||||||
// Enable fallbacks if you want `en-US`
|
// Enable fallbacks if you want `en-US`
|
||||||
// and `en-GB` to fallback to `en`
|
// and `en-GB` to fallback to `en`
|
||||||
I18n.fallbacks = true;
|
I18n.fallbacks = true;
|
||||||
|
@ -23,15 +16,13 @@ I18n.translations = {
|
||||||
'es': require('./translations/es'),
|
'es': require('./translations/es'),
|
||||||
};
|
};
|
||||||
|
|
||||||
console.log(I18n.locales)
|
|
||||||
|
|
||||||
export default class extends Component {
|
export default class extends Component {
|
||||||
state = { languages: [] }
|
state = { languages: [] };
|
||||||
|
|
||||||
componentWillMount() {
|
componentWillMount() {
|
||||||
getLanguages().then(languages => {
|
getLanguages().then(languages => {
|
||||||
this.setState({ languages })
|
this.setState({ languages });
|
||||||
})
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
render() {
|
render() {
|
Loading…
Reference in New Issue