MyGroup.js 752 Bytes
Newer Older
Giang Tran committed
1 2
import React from 'react';
import {View, Text} from 'react-native';
Giang Tran committed
3 4
import {getFontXD} from '../../../Config/Functions';
import HeaderBack from '../../../components/Header/HeaderBack';
Giang Tran committed
5 6
import {WebView} from 'react-native-webview';
import {connect} from 'react-redux';
Giang Tran committed
7 8
const MyGroup = (props) => {
  return (
Giang Tran committed
9
    <View style={{flex: 1}}>
Giang Tran committed
10
      <HeaderBack isWhite={true} title={'MyPartner'} />
Giang Tran committed
11 12 13 14 15 16 17
      <WebView
        androidHardwareAccelerationDisabled={true}
        source={{
          uri:
            'http://api.dcvinvest.com/webview/partners/show/' + props.user.uid,
        }}
      />
Giang Tran committed
18 19 20 21
    </View>
  );
};

Giang Tran committed
22 23 24 25 26 27
const mapStateToProps = (state) => {
  return {
    user: state.userReducer,
  };
};
export default connect(mapStateToProps, {})(MyGroup);