Commit 096f255a by Tonk

update

parent b2b7dfee
......@@ -17,7 +17,7 @@ const Tooltip = ({ x, y, tooltipX, tooltipY, index, dataLength }) => {
return (
<G x={x(tooltipX) - 40} y={y(tooltipY)}>
<G y={tooltipY > 7 ? 20 : -29} x={xAxis}>
<G y={y(tooltipY) > 150 ? -40 : 20} x={xAxis}>
<Rect x={-2} y={0} height={22} width={80} fill="#ee5454" ry={10} rx={10}></Rect>
<Text x={6} y={14} stroke="white">
{tooltipY} KWh
......
import React from 'react';
import { Text, Icon } from 'native-base';
import { ScrollView, FlatList } from 'react-native-gesture-handler';
import { ScrollView, FlatList, TouchableOpacity } from 'react-native-gesture-handler';
import { View, StyleSheet } from 'react-native';
import { theme, color } from '../../../constants/Styles';
import { HeaderButtons, Item } from 'react-navigation-header-buttons';
......@@ -37,7 +37,7 @@ export default class WifiSelectScreen extends React.Component {
}
renderWifiCard(item) {
return (
<View
<TouchableOpacity
style={[
styles.cardContainer,
{
......@@ -59,7 +59,7 @@ export default class WifiSelectScreen extends React.Component {
<Icon name="wifi" type="FontAwesome" style={styles.iconStyle} />
</View>
</View>
</View>
</TouchableOpacity>
);
}
render() {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment