import React from 'react'; import { View, Text, StyleSheet, ActivityIndicator } from 'react-native'; import I18n from '../i18n'; import StatusBar from '../containers/StatusBar'; import { withTheme } from '../theme'; import { themes } from '../constants/colors'; import sharedStyles from './Styles'; const styles = StyleSheet.create({ container: { flex: 1, justifyContent: 'center', alignItems: 'center' }, text: { fontSize: 16, paddingTop: 10, ...sharedStyles.textRegular, ...sharedStyles.textAlignCenter } }); export default React.memo(withTheme(({ theme, navigation }) => { const text = navigation.getParam('text'); return ( {text && ( <> {`${ text }.\n${ I18n.t('Please_wait') }`} )} ); }));