Identification OK
This commit is contained in:
parent
7339ecb3dd
commit
8199e6c181
File diff suppressed because one or more lines are too long
|
@ -1390,7 +1390,8 @@ class Home extends BaseScreen {
|
|||
translucent={true}
|
||||
/>
|
||||
{/* Start here to comment */}
|
||||
{
|
||||
{/*
|
||||
{
|
||||
(this.state.loadingDialog || this.props.loading) ?
|
||||
<View
|
||||
style={{ position: "absolute", zIndex: 1, backgroundColor: "#00000050", width: this.state.loadingDialog ? responsiveWidth(100) : 0, height: this.state.loadingDialog ? responsiveHeight(100) : 0, flex: 1, justifyContent: 'center', alignItems: 'center' }}
|
||||
|
@ -1426,7 +1427,7 @@ class Home extends BaseScreen {
|
|||
this.setState({ showProgress: false })
|
||||
Alert.alert(I18n.t("PROBLEM_OCCUR"), I18n.t("PROBLEM_OCCUR_DIRECTION"), [{ text: "Ok", onPress: () => { } }])
|
||||
}}
|
||||
/>
|
||||
/> */}
|
||||
{this.makeCardSearch()}
|
||||
{this.makeSlidingUp()}
|
||||
{this.makeDialogLoader()}
|
||||
|
|
|
@ -90,9 +90,10 @@ class CreateIdentificationUser extends Component {
|
|||
readUser().then((user) => {
|
||||
if (user) {
|
||||
if (user !== undefined) {
|
||||
let firstname = user.firstname !== null ? user.firstname : '';
|
||||
this.setState({
|
||||
user,
|
||||
lastname: `${user.firstname} ${user.lastname}`
|
||||
lastname: `${firstname} ${user.lastname}`
|
||||
});
|
||||
}
|
||||
}
|
||||
|
@ -364,7 +365,7 @@ class CreateIdentificationUser extends Component {
|
|||
id_identity_document: this.state.numeroIdentite,
|
||||
expiry_date_document: moment(this.state.dateExpiration).format('DD-MM-YYYY'),
|
||||
phone_number: null,
|
||||
id_user: 321
|
||||
id_user: this.state.user.id
|
||||
});
|
||||
}
|
||||
this.setState({
|
||||
|
|
|
@ -307,7 +307,7 @@ class WalletDetail extends Component {
|
|||
}
|
||||
]}>
|
||||
<View style={[styles.contentLeftItem]}>
|
||||
<Text numberOfLines={1} style={[Typography.body1, Typography.semibold]}>{I18n.t('COUNTRY')}</Text>
|
||||
<Text numberOfLines={1} style={[Typography.caption2, Typography.semibold]}>{I18n.t('COUNTRY')}</Text>
|
||||
<Text numberOfLines={1} adjustsFontSizeToFit={true} style={Typography.caption1}>{wallet.country}</Text>
|
||||
</View>
|
||||
|
||||
|
@ -405,8 +405,8 @@ class WalletDetail extends Component {
|
|||
</View>
|
||||
</View>
|
||||
<View style={styles.contentLeftItem}>
|
||||
<Text numberOfLines={1} style={[Typography.body1, Typography.semibold]} >{I18n.t('CREATION_DATE')}</Text>
|
||||
<Text numberOfLines={1} adjustsFontSizeToFit={true} style={Typography.caption1}>{this.getCreationDateToHumanFormat(wallet.created_date)}</Text>
|
||||
<Text numberOfLines={1} style={[Typography.caption2, Typography.semibold]} >{I18n.t('CREATION_DATE')}</Text>
|
||||
<Text numberOfLines={1} adjustsFontSizeToFit={true} style={Typography.caption1}>{moment(wallet.created_date).format('DD/MM/YYYY')}</Text>
|
||||
</View>
|
||||
</View>
|
||||
);
|
||||
|
@ -776,18 +776,12 @@ class WalletDetail extends Component {
|
|||
|
||||
<View style={[styles.content]}>
|
||||
|
||||
<View style={styles.contentTitle}>
|
||||
<View style={{ paddingTop: 20, }}>
|
||||
<Text style={[Typography.headline, Typography.semibold]}>
|
||||
{I18n.t('NANO_CREDIT')}
|
||||
</Text>
|
||||
</View>
|
||||
|
||||
<View style={{ flex: 1 }}>
|
||||
<Text style={[Typography.overline, Color.grayColor], { paddingVertical: 5 }} numberOfLines={5}>
|
||||
{I18n.t('NANO_CREDIT_DESCRIPTION')}
|
||||
</Text>
|
||||
</View>
|
||||
|
||||
</View>
|
||||
</TouchableOpacity>
|
||||
</View>
|
||||
|
@ -803,18 +797,12 @@ class WalletDetail extends Component {
|
|||
|
||||
<View style={[styles.content]}>
|
||||
|
||||
<View style={styles.contentTitle}>
|
||||
<View style={{ paddingTop: 20, }}>
|
||||
<Text style={[Typography.headline, Typography.semibold]}>
|
||||
{I18n.t('NANO_SANTE')}
|
||||
</Text>
|
||||
</View>
|
||||
|
||||
<View style={{ flex: 1 }}>
|
||||
<Text numberOfLines={1} style={[Typography.overline, Color.grayColor], { paddingVertical: 5 }} numberOfLines={5}>
|
||||
{I18n.t('NANO_SANTE_DESCRIPTION')}
|
||||
</Text>
|
||||
</View>
|
||||
|
||||
</View>
|
||||
</TouchableOpacity>
|
||||
</View>
|
||||
|
|
|
@ -34,7 +34,7 @@ import 'moment/locale/en-nz'
|
|||
import 'moment/locale/en-gb'
|
||||
import { connect } from 'react-redux';
|
||||
import { bindActionCreators } from 'redux';
|
||||
import { thousandsSeparators, isEmptyObject, transactionHistoryUser, optionDepotUserScreen, optionRetraitUserScreen, transactionHistoryLabel, optionPaiementFacture, displayToast, transactionHistoryIlinkLabel, isIlinkWorldWallet, cutStringWithoutDot } from '../../utils/UtilsFunction';
|
||||
import { thousandsSeparators, isEmptyObject, transactionHistoryUser, optionDepotUserScreen, optionRetraitUserScreen, transactionHistoryLabel, optionPaiementFacture, displayToast, transactionHistoryIlinkLabel, isIlinkWorldWallet, cutStringWithoutDot, cutString } from '../../utils/UtilsFunction';
|
||||
import DeviceInfo from 'react-native-device-info';
|
||||
import { readUser } from '../../webservice/AuthApi';
|
||||
const thousands = require('thousands');
|
||||
|
@ -217,8 +217,8 @@ class WalletDetailUser extends Component {
|
|||
}
|
||||
]}>
|
||||
<View style={[styles.contentLeftItem]}>
|
||||
<Text numberOfLines={1} style={[Typography.body1, Typography.semibold]}>{I18n.t('COUNTRY')}</Text>
|
||||
<Text numberOfLines={1} adjustsFontSizeToFit={true} style={Typography.caption1}>Pays</Text>
|
||||
<Text numberOfLines={1} style={[Typography.caption2, Typography.semibold]}>{I18n.t('COUNTRY')}</Text>
|
||||
<Text numberOfLines={1} adjustsFontSizeToFit={true} style={Typography.caption1}>{wallet.country}</Text>
|
||||
</View>
|
||||
|
||||
<View style={{
|
||||
|
@ -268,8 +268,8 @@ class WalletDetailUser extends Component {
|
|||
</View>
|
||||
</View>
|
||||
<View style={styles.contentLeftItem}>
|
||||
<Text numberOfLines={1} style={[Typography.body1, Typography.semibold]} >{I18n.t('CREATION_DATE')}</Text>
|
||||
<Text numberOfLines={1} adjustsFontSizeToFit={true} style={Typography.caption1}>{this.getCreationDateToHumanFormat(wallet.createdAt)}</Text>
|
||||
<Text numberOfLines={1} style={[Typography.caption2, Typography.semibold]} >{I18n.t('CREATION_DATE')}</Text>
|
||||
<Text numberOfLines={1} adjustsFontSizeToFit={true} style={Typography.caption1}>{moment(wallet.created_date).format('DD/MM/YYYY')}</Text>
|
||||
</View>
|
||||
</View>
|
||||
);
|
||||
|
@ -579,7 +579,7 @@ class WalletDetailUser extends Component {
|
|||
|
||||
<TouchableOpacity style={styles.contain}
|
||||
onPress={() => {
|
||||
if (this.state.isIdentified)
|
||||
if (!this.state.isIdentified)
|
||||
this.props.navigation.push(route.createIdentificationUser)
|
||||
else
|
||||
displayToast(I18n.t('ALREADY_IDENTIFIED'))
|
||||
|
|
|
@ -361,7 +361,7 @@ class EnvoiCashVersCashAgent extends Component {
|
|||
<Text tyle={[Typography.body2, FontWeight.bold]}>{I18n.t('NET_AMOUNT')}:</Text>
|
||||
</View>
|
||||
<View style={{ flex: 1, alignItems: 'flex-end' }}>
|
||||
<Text style={[Typography.caption1, Color.grayColor]}>{`${thousands(montant_net_final, ' ')} ${this.state.wallet.currency_code}`}</Text>
|
||||
<Text style={[Typography.caption1, Color.grayColor]}>{`${thousands(montant_net_final, ' ')}}`}</Text>
|
||||
</View>
|
||||
</View>
|
||||
</View>
|
||||
|
|
|
@ -361,7 +361,7 @@ class EnvoieCashVersAutreWalletAgent extends Component {
|
|||
<Text tyle={[Typography.body2, FontWeight.bold]}>{I18n.t('NET_AMOUNT')}:</Text>
|
||||
</View>
|
||||
<View style={{ flex: 1, alignItems: 'flex-end' }}>
|
||||
<Text style={[Typography.caption1, Color.grayColor]}>{`${thousands(montant_net_final, ' ')} ${this.state.wallet.currency_code}`}</Text>
|
||||
<Text style={[Typography.caption1, Color.grayColor]}>{`${thousands(montant_net_final, ' ')}`}</Text>
|
||||
</View>
|
||||
</View>
|
||||
</View>
|
||||
|
|
|
@ -66,6 +66,8 @@ class EnvoieCashVersCarteAgent extends Component {
|
|||
displayCardError: false,
|
||||
loading: false,
|
||||
user: null,
|
||||
displayFirstStep: true,
|
||||
displaySecondStep: false,
|
||||
triggerSubmitClick: false,
|
||||
isSubmitClick: false,
|
||||
isDataSubmit: false,
|
||||
|
@ -156,7 +158,7 @@ class EnvoieCashVersCarteAgent extends Component {
|
|||
if (resultEnvoieWalletToCard !== null) {
|
||||
if (resultEnvoieWalletToCard.response !== null) {
|
||||
Alert.alert(
|
||||
I18n.t("WITHDRAWAL_SUCCESS"),
|
||||
I18n.t("SUCCESS_TRANSFER"),
|
||||
resultEnvoieWalletToCard.response,
|
||||
[
|
||||
{
|
||||
|
@ -350,43 +352,47 @@ class EnvoieCashVersCarteAgent extends Component {
|
|||
}
|
||||
<ScrollView style={styles.container}>
|
||||
|
||||
<Text style={styles.subbigtitle}>{I18n.t('DEPOSIT_CASH_TO_VISA_DESCRIPTION')}</Text>
|
||||
|
||||
<Animatable.View ref={(comp) => { this.codeCVVAnim = comp }}>
|
||||
<View style={{
|
||||
overflow: 'hidden',
|
||||
paddingTop: 16,
|
||||
backgroundColor: 'white',
|
||||
marginTop: responsiveHeight(2),
|
||||
marginLeft: responsiveWidth(5),
|
||||
marginRight: responsiveWidth(5),
|
||||
borderRadius: 5,
|
||||
}}>
|
||||
<LiteCreditCardInput
|
||||
inputStyle={{
|
||||
flex: 1,
|
||||
color: 'black',
|
||||
fontSize: 18,
|
||||
padding: 7,
|
||||
paddingLeft: 0,
|
||||
}}
|
||||
validColor={this.state.creditCardInput.valid ? 'green' : ''}
|
||||
invalidColor={!this.state.creditCardInput.valid ? 'red' : ''}
|
||||
onChange={this.onCreditCardChange}
|
||||
labels={{
|
||||
number: I18n.t('CARD_NUMBER_LABEL'),
|
||||
expiry: I18n.t('CARD_EXPIRY_LABEL'),
|
||||
cvc: I18n.t('CARD_CVC_LABEL'),
|
||||
}} />
|
||||
{
|
||||
(this.state.displayCardError) &&
|
||||
this.isCreditCardValid().map((item) => (
|
||||
<Text style={{ color: 'red', marginLeft: 15 }}>{item}</Text>
|
||||
))
|
||||
}
|
||||
</View>
|
||||
{this.state.displayFirstStep &&
|
||||
<>
|
||||
|
||||
{/* <Fumi iconClass={FontAwesomeIcon} iconName={'credit-card'}
|
||||
<Text style={styles.subbigtitle}>{I18n.t('DEPOSIT_CASH_TO_VISA_DESCRIPTION')}</Text>
|
||||
|
||||
<Animatable.View ref={(comp) => { this.codeCVVAnim = comp }}>
|
||||
<View style={{
|
||||
overflow: 'hidden',
|
||||
paddingTop: 16,
|
||||
backgroundColor: 'white',
|
||||
marginTop: responsiveHeight(2),
|
||||
marginLeft: responsiveWidth(5),
|
||||
marginRight: responsiveWidth(5),
|
||||
borderRadius: 5,
|
||||
}}>
|
||||
<LiteCreditCardInput
|
||||
inputStyle={{
|
||||
flex: 1,
|
||||
color: 'black',
|
||||
fontSize: 18,
|
||||
padding: 7,
|
||||
paddingLeft: 0,
|
||||
}}
|
||||
validColor={this.state.creditCardInput.valid ? 'green' : ''}
|
||||
invalidColor={!this.state.creditCardInput.valid ? 'red' : ''}
|
||||
onChange={this.onCreditCardChange}
|
||||
labels={{
|
||||
number: I18n.t('CARD_NUMBER_LABEL'),
|
||||
expiry: I18n.t('CARD_EXPIRY_LABEL'),
|
||||
cvc: I18n.t('CARD_CVC_LABEL'),
|
||||
}} />
|
||||
{
|
||||
(this.state.displayCardError) &&
|
||||
this.isCreditCardValid().map((item) => (
|
||||
<Text style={{ color: 'red', marginLeft: 15 }}>{item}</Text>
|
||||
))
|
||||
}
|
||||
</View>
|
||||
|
||||
{/* <Fumi iconClass={FontAwesomeIcon} iconName={'credit-card'}
|
||||
label={I18n.t('CARD_CVC_LABEL')}
|
||||
iconColor={'#f95a25'}
|
||||
keyboardType='numeric'
|
||||
|
@ -402,61 +408,84 @@ class EnvoieCashVersCarteAgent extends Component {
|
|||
style={styles.input}
|
||||
>
|
||||
</Fumi> */}
|
||||
</Animatable.View>
|
||||
</Animatable.View>
|
||||
|
||||
<Animatable.View ref={(comp) => { this.montantAnim = comp }}>
|
||||
<Fumi iconClass={FontAwesomeIcon} iconName={'money'}
|
||||
label={I18n.t('AMOUNT')}
|
||||
iconColor={'#f95a25'}
|
||||
keyboardType='numeric'
|
||||
iconSize={20}
|
||||
value={this.state.montant}
|
||||
onChangeText={(montant) => {
|
||||
this.setState({ montant })
|
||||
}}
|
||||
style={styles.input}
|
||||
>
|
||||
</Fumi>
|
||||
<View style={{
|
||||
position: 'absolute',
|
||||
left: responsiveWidth(82),
|
||||
top: 35,
|
||||
flexDirection: 'row'
|
||||
}}>
|
||||
<View
|
||||
style={{
|
||||
width: 1,
|
||||
borderLeftColor: '#f0f0f0',
|
||||
height: 40,
|
||||
left: -8,
|
||||
top: -10,
|
||||
borderLeftWidth: 1,
|
||||
<Button style={styles.btnvalide}
|
||||
textStyle={styles.textbtnvalide}
|
||||
isLoading={this.state.isLoging}
|
||||
onPress={() => {
|
||||
|
||||
}}
|
||||
/>
|
||||
<Text style={[Typography.body1, FontWeight.bold]}>{this.state.wallet.currency_code}</Text>
|
||||
</View>
|
||||
</Animatable.View>
|
||||
if (!this.state.creditCardInput.valid)
|
||||
this.codeCVVAnim.shake(800);
|
||||
else {
|
||||
this.setState({
|
||||
displayFirstStep: !this.state.displayFirstStep,
|
||||
displaySecondStep: !this.state.displaySecondStep,
|
||||
});
|
||||
}
|
||||
}}>
|
||||
{I18n.t('NEXT')}</Button>
|
||||
</>
|
||||
}
|
||||
|
||||
<Animatable.View ref={(comp) => { this.passwordAnim = comp }}>
|
||||
<Fumi iconClass={FontAwesomeIcon} iconName={'lock'}
|
||||
label={I18n.t('PASSWORD')}
|
||||
iconColor={'#f95a25'}
|
||||
iconSize={20}
|
||||
secureTextEntry={true}
|
||||
value={this.state.password}
|
||||
onChangeText={(password) => {
|
||||
this.setState({ password })
|
||||
}}
|
||||
style={styles.input}
|
||||
>
|
||||
</Fumi>
|
||||
</Animatable.View>
|
||||
{this.state.displaySecondStep &&
|
||||
<>
|
||||
<Animatable.View ref={(comp) => { this.montantAnim = comp }}>
|
||||
<Fumi iconClass={FontAwesomeIcon} iconName={'money'}
|
||||
label={I18n.t('AMOUNT')}
|
||||
iconColor={'#f95a25'}
|
||||
keyboardType='numeric'
|
||||
iconSize={20}
|
||||
value={this.state.montant}
|
||||
onChangeText={(montant) => {
|
||||
this.setState({ montant })
|
||||
}}
|
||||
style={styles.input}
|
||||
>
|
||||
</Fumi>
|
||||
<View style={{
|
||||
position: 'absolute',
|
||||
left: responsiveWidth(82),
|
||||
top: 35,
|
||||
flexDirection: 'row'
|
||||
}}>
|
||||
<View
|
||||
style={{
|
||||
width: 1,
|
||||
borderLeftColor: '#f0f0f0',
|
||||
height: 40,
|
||||
left: -8,
|
||||
top: -10,
|
||||
borderLeftWidth: 1,
|
||||
|
||||
<Button style={styles.btnvalide}
|
||||
textStyle={styles.textbtnvalide}
|
||||
onPress={() => { this.onSubmitSendWalletToCard() }}>
|
||||
{I18n.t('SUBMIT_LABEL')}</Button>
|
||||
}}
|
||||
/>
|
||||
<Text style={[Typography.body1, FontWeight.bold]}>{this.state.wallet.currency_code}</Text>
|
||||
</View>
|
||||
</Animatable.View>
|
||||
|
||||
<Animatable.View ref={(comp) => { this.passwordAnim = comp }}>
|
||||
<Fumi iconClass={FontAwesomeIcon} iconName={'lock'}
|
||||
label={I18n.t('PASSWORD')}
|
||||
iconColor={'#f95a25'}
|
||||
iconSize={20}
|
||||
secureTextEntry={true}
|
||||
value={this.state.password}
|
||||
onChangeText={(password) => {
|
||||
this.setState({ password })
|
||||
}}
|
||||
style={styles.input}
|
||||
>
|
||||
</Fumi>
|
||||
</Animatable.View>
|
||||
|
||||
<Button style={styles.btnvalide}
|
||||
textStyle={styles.textbtnvalide}
|
||||
onPress={() => { this.onSubmitSendWalletToCard() }}>
|
||||
{I18n.t('SUBMIT_LABEL')}</Button>
|
||||
|
||||
</>
|
||||
}
|
||||
</ScrollView>
|
||||
</>
|
||||
)
|
||||
|
|
|
@ -66,6 +66,8 @@ class RetraitCarteVersCashAgent extends Component {
|
|||
displayCardError: false,
|
||||
loading: false,
|
||||
user: null,
|
||||
displayFirstStep: true,
|
||||
displaySecondStep: false,
|
||||
triggerSubmitClick: false,
|
||||
isSubmitClick: false,
|
||||
isDataSubmit: false,
|
||||
|
@ -350,43 +352,46 @@ class RetraitCarteVersCashAgent extends Component {
|
|||
}
|
||||
<ScrollView style={styles.container}>
|
||||
|
||||
<Text style={styles.subbigtitle}>{I18n.t('WITHDRAWAL_CARD_TO_CASH_DESCRIPTION_AGENT')}</Text>
|
||||
{this.state.displayFirstStep &&
|
||||
<>
|
||||
|
||||
<Animatable.View ref={(comp) => { this.codeCVVAnim = comp }}>
|
||||
<View style={{
|
||||
overflow: 'hidden',
|
||||
paddingTop: 16,
|
||||
backgroundColor: 'white',
|
||||
marginTop: responsiveHeight(2),
|
||||
marginLeft: responsiveWidth(5),
|
||||
marginRight: responsiveWidth(5),
|
||||
borderRadius: 5,
|
||||
}}>
|
||||
<LiteCreditCardInput
|
||||
inputStyle={{
|
||||
flex: 1,
|
||||
color: 'black',
|
||||
fontSize: 18,
|
||||
padding: 7,
|
||||
paddingLeft: 0,
|
||||
}}
|
||||
validColor={this.state.creditCardInput.valid ? 'green' : ''}
|
||||
invalidColor={!this.state.creditCardInput.valid ? 'red' : ''}
|
||||
onChange={this.onCreditCardChange}
|
||||
labels={{
|
||||
number: I18n.t('CARD_NUMBER_LABEL'),
|
||||
expiry: I18n.t('CARD_EXPIRY_LABEL'),
|
||||
cvc: I18n.t('CARD_CVC_LABEL'),
|
||||
}} />
|
||||
{
|
||||
(this.state.displayCardError) &&
|
||||
this.isCreditCardValid().map((item) => (
|
||||
<Text style={{ color: 'red', marginLeft: 15 }}>{item}</Text>
|
||||
))
|
||||
}
|
||||
</View>
|
||||
<Text style={styles.subbigtitle}>{I18n.t('WITHDRAWAL_CARD_TO_CASH_DESCRIPTION_AGENT')}</Text>
|
||||
|
||||
{/* <Fumi iconClass={FontAwesomeIcon} iconName={'credit-card'}
|
||||
<Animatable.View ref={(comp) => { this.codeCVVAnim = comp }}>
|
||||
<View style={{
|
||||
overflow: 'hidden',
|
||||
paddingTop: 16,
|
||||
backgroundColor: 'white',
|
||||
marginTop: responsiveHeight(2),
|
||||
marginLeft: responsiveWidth(5),
|
||||
marginRight: responsiveWidth(5),
|
||||
borderRadius: 5,
|
||||
}}>
|
||||
<LiteCreditCardInput
|
||||
inputStyle={{
|
||||
flex: 1,
|
||||
color: 'black',
|
||||
fontSize: 18,
|
||||
padding: 7,
|
||||
paddingLeft: 0,
|
||||
}}
|
||||
validColor={this.state.creditCardInput.valid ? 'green' : ''}
|
||||
invalidColor={!this.state.creditCardInput.valid ? 'red' : ''}
|
||||
onChange={this.onCreditCardChange}
|
||||
labels={{
|
||||
number: I18n.t('CARD_NUMBER_LABEL'),
|
||||
expiry: I18n.t('CARD_EXPIRY_LABEL'),
|
||||
cvc: I18n.t('CARD_CVC_LABEL'),
|
||||
}} />
|
||||
{
|
||||
(this.state.displayCardError) &&
|
||||
this.isCreditCardValid().map((item) => (
|
||||
<Text style={{ color: 'red', marginLeft: 15 }}>{item}</Text>
|
||||
))
|
||||
}
|
||||
</View>
|
||||
|
||||
{/* <Fumi iconClass={FontAwesomeIcon} iconName={'credit-card'}
|
||||
label={I18n.t('CARD_CVC_LABEL')}
|
||||
iconColor={'#f95a25'}
|
||||
keyboardType='numeric'
|
||||
|
@ -402,61 +407,84 @@ class RetraitCarteVersCashAgent extends Component {
|
|||
style={styles.input}
|
||||
>
|
||||
</Fumi> */}
|
||||
</Animatable.View>
|
||||
</Animatable.View>
|
||||
|
||||
<Animatable.View ref={(comp) => { this.montantAnim = comp }}>
|
||||
<Fumi iconClass={FontAwesomeIcon} iconName={'money'}
|
||||
label={I18n.t('AMOUNT')}
|
||||
iconColor={'#f95a25'}
|
||||
keyboardType='numeric'
|
||||
iconSize={20}
|
||||
value={this.state.montant}
|
||||
onChangeText={(montant) => {
|
||||
this.setState({ montant })
|
||||
}}
|
||||
style={styles.input}
|
||||
>
|
||||
</Fumi>
|
||||
<View style={{
|
||||
position: 'absolute',
|
||||
left: responsiveWidth(82),
|
||||
top: 35,
|
||||
flexDirection: 'row'
|
||||
}}>
|
||||
<View
|
||||
style={{
|
||||
width: 1,
|
||||
borderLeftColor: '#f0f0f0',
|
||||
height: 40,
|
||||
left: -8,
|
||||
top: -10,
|
||||
borderLeftWidth: 1,
|
||||
<Button style={styles.btnvalide}
|
||||
textStyle={styles.textbtnvalide}
|
||||
isLoading={this.state.isLoging}
|
||||
onPress={() => {
|
||||
|
||||
}}
|
||||
/>
|
||||
<Text style={[Typography.body1, FontWeight.bold]}>{this.state.wallet.currency_code}</Text>
|
||||
</View>
|
||||
</Animatable.View>
|
||||
if (!this.state.creditCardInput.valid)
|
||||
this.codeCVVAnim.shake(800);
|
||||
else {
|
||||
this.setState({
|
||||
displayFirstStep: !this.state.displayFirstStep,
|
||||
displaySecondStep: !this.state.displaySecondStep,
|
||||
});
|
||||
}
|
||||
}}>
|
||||
{I18n.t('NEXT')}</Button>
|
||||
</>
|
||||
}
|
||||
|
||||
<Animatable.View ref={(comp) => { this.passwordAnim = comp }}>
|
||||
<Fumi iconClass={FontAwesomeIcon} iconName={'lock'}
|
||||
label={I18n.t('PASSWORD')}
|
||||
iconColor={'#f95a25'}
|
||||
iconSize={20}
|
||||
secureTextEntry={true}
|
||||
value={this.state.password}
|
||||
onChangeText={(password) => {
|
||||
this.setState({ password })
|
||||
}}
|
||||
style={styles.input}
|
||||
>
|
||||
</Fumi>
|
||||
</Animatable.View>
|
||||
{this.state.displaySecondStep &&
|
||||
<>
|
||||
<Animatable.View ref={(comp) => { this.montantAnim = comp }}>
|
||||
<Fumi iconClass={FontAwesomeIcon} iconName={'money'}
|
||||
label={I18n.t('AMOUNT')}
|
||||
iconColor={'#f95a25'}
|
||||
keyboardType='numeric'
|
||||
iconSize={20}
|
||||
value={this.state.montant}
|
||||
onChangeText={(montant) => {
|
||||
this.setState({ montant })
|
||||
}}
|
||||
style={styles.input}
|
||||
>
|
||||
</Fumi>
|
||||
<View style={{
|
||||
position: 'absolute',
|
||||
left: responsiveWidth(82),
|
||||
top: 35,
|
||||
flexDirection: 'row'
|
||||
}}>
|
||||
<View
|
||||
style={{
|
||||
width: 1,
|
||||
borderLeftColor: '#f0f0f0',
|
||||
height: 40,
|
||||
left: -8,
|
||||
top: -10,
|
||||
borderLeftWidth: 1,
|
||||
|
||||
<Button style={styles.btnvalide}
|
||||
textStyle={styles.textbtnvalide}
|
||||
onPress={() => { this.onSubmitSendWalletToCard() }}>
|
||||
{I18n.t('SUBMIT_LABEL')}</Button>
|
||||
}}
|
||||
/>
|
||||
<Text style={[Typography.body1, FontWeight.bold]}>{this.state.wallet.currency_code}</Text>
|
||||
</View>
|
||||
</Animatable.View>
|
||||
|
||||
<Animatable.View ref={(comp) => { this.passwordAnim = comp }}>
|
||||
<Fumi iconClass={FontAwesomeIcon} iconName={'lock'}
|
||||
label={I18n.t('PASSWORD')}
|
||||
iconColor={'#f95a25'}
|
||||
iconSize={20}
|
||||
secureTextEntry={true}
|
||||
value={this.state.password}
|
||||
onChangeText={(password) => {
|
||||
this.setState({ password })
|
||||
}}
|
||||
style={styles.input}
|
||||
>
|
||||
</Fumi>
|
||||
</Animatable.View>
|
||||
|
||||
<Button style={styles.btnvalide}
|
||||
textStyle={styles.textbtnvalide}
|
||||
onPress={() => { this.onSubmitSendWalletToCard() }}>
|
||||
{I18n.t('SUBMIT_LABEL')}</Button>
|
||||
|
||||
</>
|
||||
}
|
||||
</ScrollView>
|
||||
</>
|
||||
)
|
||||
|
|
|
@ -283,7 +283,7 @@ class RetraitEnCashAgent extends Component {
|
|||
{this.state.displayFirstStep &&
|
||||
<>
|
||||
|
||||
<Text style={styles.subbigtitle}>{I18n.t('ENVOIE_WALLET_TO_CASH')}</Text>
|
||||
<Text style={styles.subbigtitle}>{I18n.t('WITHDRAWAL_IN_CASH_DESCRIPTION')}</Text>
|
||||
|
||||
<Animatable.View ref={(comp) => { this.idTransactionAnim = comp }}>
|
||||
<Fumi iconClass={FontAwesomeIcon} iconName={'barcode'}
|
||||
|
|
|
@ -337,7 +337,7 @@ class EnvoieWalletToCashUser extends Component {
|
|||
<Text style={[styles.body2]}>{I18n.t('DESTINATAIRE')}</Text>
|
||||
</View>
|
||||
<View style={{ flex: 1, alignItems: 'flex-end' }}>
|
||||
<Text style={[Typography.caption1, Color.grayColor]}>{destinataire}</Text>
|
||||
<Text style={[Typography.caption1, Color.grayColor]}>{`${this.state.prenoms} ${this.state.noms}`}</Text>
|
||||
</View>
|
||||
</View>
|
||||
<View style={{ flexDirection: 'row', marginTop: 10 }}>
|
||||
|
|
|
@ -52,7 +52,7 @@ export const displayToast = (message) => {
|
|||
}
|
||||
|
||||
export const isIlinkWorldWallet = (walletName) => {
|
||||
return isEqual(slugify(walletName).toLowerCase(), 'ilink');
|
||||
return isEqual(walletName, 'ilink');
|
||||
}
|
||||
|
||||
|
||||
|
|
|
@ -72,6 +72,7 @@
|
|||
"WITHDRAWAL": "Withdrawal",
|
||||
"LINK_CARD": "Link my card",
|
||||
"WITHDRAWAL_IN_CASH": "Withdrawal in cash",
|
||||
"WITHDRAWAL_IN_CASH_DESCRIPTION": "Withdrawal money in cash",
|
||||
"WITHDRAWAL_WALLET_TO_CASH": "Withdrawal wallet to cash",
|
||||
"WITHDRAWAL_WALLET_TO_CASH_DESCRIPTION": "Withdrawal money from wallet to cash",
|
||||
"WITHDRAWAL_CARD_TO_WALLET": "Withdrawal card to wallet",
|
||||
|
|
|
@ -77,6 +77,7 @@
|
|||
"WITHDRAWAL": "Retrait",
|
||||
"LINK_CARD": "Lier ma carte",
|
||||
"WITHDRAWAL_IN_CASH": "Retrait en cash",
|
||||
"WITHDRAWAL_IN_CASH_DESCRIPTION": "Retrait d'argent en cash",
|
||||
"WITHDRAWAL_WALLET_TO_CASH": "Retrait de votre wallet vers cash",
|
||||
"WITHDRAWAL_WALLET_TO_CASH_DESCRIPTION": "Retirer de l'argent de votre Wallet vers cash",
|
||||
"WITHDRAWAL_CARD_TO_WALLET": "Retrait de votre carte vers wallet",
|
||||
|
|
|
@ -7,11 +7,11 @@ export const isDebugMode = false
|
|||
//export const baseUrl = "http://test.ilink-app.com:8080/mobilebackendtest";
|
||||
//const baseUrl = "https://ilink-app.com/mobilebackendtest2"
|
||||
|
||||
/* export const baseUrl = "http://test.ilink-app.com:8080/mobilebackend";
|
||||
export const testBaseUrl = "https://test.ilink-app.com"; */
|
||||
export const baseUrl = "http://test.ilink-app.com:8080/mobilebackend";
|
||||
export const testBaseUrl = "https://test.ilink-app.com";
|
||||
|
||||
export const baseUrl = "https://preprod.ilink-app.com:8080/mobilebackend";
|
||||
export const testBaseUrl = "https://preprod.ilink-app.com";
|
||||
/* export const baseUrl = "https://preprod.ilink-app.com:8080/mobilebackend";
|
||||
export const testBaseUrl = "https://preprod.ilink-app.com"; */
|
||||
|
||||
//base url agent test
|
||||
//const baseUrl = "https://ilink-app.com/mobilebackendtest";
|
||||
|
|
Loading…
Reference in New Issue