import React, {useState} from 'react';
import {View, Text, StyleSheet} from 'react-native';
import HeaderBack from '../../../components/Header/HeaderBack';

import {WebView} from 'react-native-webview';

const DetailHistory = (props) => {
  return (
    <View style={{flex: 1}}>
      <HeaderBack isWhite={true} title={'Detail'} />
      <WebView
        androidHardwareAccelerationDisabled={true}
        source={{
          uri:
            'http://services.dcvinvest.com/webview/customers/detail-transaction-history/' +
            props.route.params.id,
        }}
      />
    </View>
  );
};

const styles = StyleSheet.create({
  containerBtn: {
    marginBottom: 15,
  },
});

export default DetailHistory;
