import React, { Component } from 'react';
import { Animated, StyleSheet, View, Image, StatusBar, ScrollView, TouchableOpacity, Alert } from 'react-native';
let theme = require('./../../utils/theme.json');
import Icon from 'react-native-vector-icons/MaterialCommunityIcons';
const route = require('./../../route.json')
import I18n from 'react-native-i18n'
import { IlinkEmitter } from "../../utils/events";
import { TabView, TabBar, SceneMap } from 'react-native-tab-view';
import * as Utils from '../../utils/DeviceUtils';
import { SafeAreaView } from 'react-navigation';
import { Images } from '../../config/Images';
import CustomText from '../../components/CustomText';
import { Color } from '../../config/Color';
import Tag from '../../components/Tag';
require('./../../utils/Translations');
const fakeData = [
{
name: 'UBA',
logo: ''
},
{
name: 'SmallWolrd',
logo: ''
},
{
name: 'Wafa Cash',
logo: ''
},
{
name: 'Orange Money',
logo: ''
},
{
name: 'Mtn Mobile Money',
logo: ''
},
{
name: 'Ria',
logo: ''
},
]
const FirstRoute = () => (
{
fakeData.map((item) => (
{
}}>
{item.name}
))
}
);
const SecondRoute = () => (
);
export default class WalletDetail extends Component {
constructor(props) {
super(props);
this.state = {
index: 0,
routes: [
{ key: 'depot', title: I18n.t('DEPOSIT') },
{ key: 'retrait', title: I18n.t('WITHDRAWAL') }
]
};
this.scrollY = new Animated.Value(0);
}
handleIndexChange = index => this.setState({ index });
imageScale = () => {
return this.scrollY.interpolate({
inputRange: [0, 100],
outputRange: [1, 0.5],
extrapolate: 'clamp',
});
}
imageTranslateY = () => {
return this.scrollY.interpolate({
inputRange: [0, 100],
outputRange: [-5, 50],
extrapolate: 'clamp',
});
}
renderTabBar = props => (
(
{
(route.key === 'depot') ?
()
:
()
}
{` ${route.title}`}
)}
/>
);
render() {
const { index, routes } = this.state;
return (
{I18n.t('COMMISSION_ACCOUNT_TITLE')}
100 000F
Brice Zele
{I18n.t('TRANSFER_TO_PRINCIPAL_ACCOUNT')} ->
{I18n.t('PRINCIPAL_ACCOUNT_TITLE')}
1000 000F
);
}
}
const styles = StyleSheet.create({
container: {
flex: 1,
backgroundColor: theme.containerBackground
},
indicator: {
height: 2
},
tab: {
width: Utils.getWidthDevice() / 2
},
tabbar: {
height: 40
},
containField: {
margin: 20,
marginTop: 90,
flexDirection: "row",
height: 140,
borderRadius: 10
},
contentLeftItem: {
flex: 1,
paddingTop: 40,
paddingLeft: 10,
paddingRight: 10,
alignItems: "center"
},
tagFollow: { width: 150, margin: 10 },
profileItem: {
flexDirection: "row",
justifyContent: "space-between",
alignItems: "center",
paddingBottom: 20,
paddingTop: 20
}
})