Update react-native to v0.62.0

This commit is contained in:
Sofiya Tepikin
2022-08-12 08:29:30 +00:00
parent ccdcced112
commit 78edee3b07
24 changed files with 3838 additions and 1556 deletions
+9 -7
View File
@@ -1,19 +1,21 @@
import React from 'react'
import PropTypes from 'prop-types'
import { Shape } from 'react-native/Libraries/ART/ReactNativeART'
import { Shape } from '@react-native-community/art'
import { Colors } from '../../styles'
import { CHART_STROKE_WIDTH, CHART_GRID_LINE_HORIZONTAL_WIDTH } from '../../config'
import {
CHART_STROKE_WIDTH,
CHART_GRID_LINE_HORIZONTAL_WIDTH,
} from '../../config'
const ChartLine = ({ path, isNfpLine }) => {
const color = isNfpLine ? Colors.orange : Colors.grey
const width = isNfpLine
? CHART_STROKE_WIDTH : CHART_GRID_LINE_HORIZONTAL_WIDTH * 2.5
? CHART_STROKE_WIDTH
: CHART_GRID_LINE_HORIZONTAL_WIDTH * 2.5
return (
<Shape d={path} stroke={color} strokeWidth={width} />
)
return <Shape d={path} stroke={color} strokeWidth={width} />
}
ChartLine.propTypes = {
@@ -22,7 +24,7 @@ ChartLine.propTypes = {
}
ChartLine.defaultProps = {
isNfpLine: false
isNfpLine: false,
}
export default ChartLine