transfer nsmutabledictionary to nsstring error fix

This commit is contained in:
feruz 2019-12-05 06:37:14 +02:00
parent b6cad33337
commit 6fd809837c
3 changed files with 28 additions and 35 deletions

View File

@ -10,9 +10,9 @@ const TextInputView = ({ innerRef, height, style, ...props }) => (
<ThemeContainer>
{({ isDarkTheme }) => (
<TextInput
{...props}
ref={innerRef}
keyboardAppearance={isDarkTheme ? 'dark' : 'light'}
{...props}
style={[styles.input, { minHeight: height }, style]}
/>
)}

View File

@ -82,34 +82,27 @@ const PointsContainer = ({
let navigateTo;
let navigateParams;
switch (Number(index)) {
case 0:
navigateTo = ROUTES.SCREENS.TRANSFER;
navigateParams = {
transferType: 'points',
fundType: 'ESTM',
balance,
};
break;
case 1:
navigateTo = ROUTES.SCREENS.REDEEM;
navigateParams = {
balance,
redeemType: 'promote',
};
break;
case 2:
navigateTo = ROUTES.SCREENS.REDEEM;
navigateParams = {
balance,
redeemType: 'boost',
};
break;
default:
break;
if (index === 'dropdown_transfer') {
navigateTo = ROUTES.SCREENS.TRANSFER;
navigateParams = {
transferType: 'points',
fundType: 'ESTM',
balance,
};
}
if (index === 'dropdown_promote') {
navigateTo = ROUTES.SCREENS.REDEEM;
navigateParams = {
balance,
redeemType: 'promote',
};
}
if (index === 'dropdown_boost') {
navigateTo = ROUTES.SCREENS.REDEEM;
navigateParams = {
balance,
redeemType: 'boost',
};
}
if (isPinCodeOpen) {

View File

@ -221,12 +221,12 @@ class TransferView extends Component {
<TransferFormItem
label={intl.formatMessage({ id: 'transfer.memo' })}
rightComponent={() =>
this._renderInput({
placeholder: intl.formatMessage({ id: 'transfer.memo_placeholder' }),
state: 'memo',
keyboardType: 'default',
isTextArea: true,
})
this._renderInput(
intl.formatMessage({ id: 'transfer.memo_placeholder' }),
'memo',
'default',
true,
)
}
/>
)}