boost screen key issue fix

This commit is contained in:
feruz 2020-01-10 11:35:10 +02:00
parent 405ccc93fb
commit c09675043b
2 changed files with 4 additions and 3 deletions

View File

@ -20,7 +20,7 @@ const BoostPlaceHolder = () => {
{({ isDarkTheme }) => { {({ isDarkTheme }) => {
const color = isDarkTheme ? '#2e3d51' : '#f5f5f5'; const color = isDarkTheme ? '#2e3d51' : '#f5f5f5';
return ( return (
<View style={styles.container} key={i.toString()}> <View style={styles.container} key={'key-' + i.toString()}>
<View style={styles.line}> <View style={styles.line}>
<Placeholder.Box color={color} width={90} height={40} animate="fade" /> <Placeholder.Box color={color} width={90} height={40} animate="fade" />
<View style={styles.paragraphWrapper}> <View style={styles.paragraphWrapper}>

View File

@ -19,8 +19,9 @@ const ITEM_SKUS = Platform.select({
const _getTitle = title => { const _getTitle = title => {
let _title = title.toUpperCase(); let _title = title.toUpperCase();
if (_title !== 'FREE ESTM') {
_title = _title.replace(/[^0-9]+/g, '') + ' ESTM'; _title = _title.replace(/[^0-9]+/g, '') + ' ESTM';
}
return _title; return _title;
}; };