DetailNew.js 758 Bytes
Newer Older
Giang Tran committed
1 2 3 4 5 6 7 8
import React, {useState} from 'react';
import {View, Text, StyleSheet} from 'react-native';
import HeaderBack from '../../components/Header/HeaderBack';

import {WebView} from 'react-native-webview';
import {root} from '../../apis/url';

const DepositView = (props) => {
Giang Tran committed
9
  console.log(props.route);
Giang Tran committed
10 11
  return (
    <View style={{flex: 1}}>
Giang Tran committed
12
      <HeaderBack isWhite={true} title={'Detail'} />
Giang Tran committed
13
      <WebView
Giang Tran committed
14
        androidHardwareAccelerationDisabled={true}
Giang Tran committed
15
        domStorageEnabled={false}
Giang Tran committed
16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31
        source={{
          uri:
            root + 'api/v1/posts/detail/web-view?id=' + props.route.params.id,
        }}
      />
    </View>
  );
};

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

export default DepositView;