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
+32 -29
View File
@@ -2,7 +2,7 @@ import React from 'react'
import PropTypes from 'prop-types'
import { StyleSheet } from 'react-native'
import { Surface , Path } from 'react-native/Libraries/ART/ReactNativeART'
import { Surface, Path } from '@react-native-community/art'
import ChartLine from './chart-line'
import DotAndLine from './dot-and-line'
@@ -13,7 +13,7 @@ const TemperatureColumn = ({
horizontalLinePosition,
isVerticalLine,
data,
columnHeight
columnHeight,
}) => {
const x = CHART_STROKE_WIDTH / 2
@@ -23,34 +23,37 @@ const TemperatureColumn = ({
height={columnHeight}
style={styles.container}
>
<ChartLine path={new Path().lineTo(0, columnHeight)} />
<ChartLine path={new Path().lineTo(0, columnHeight)}/>
{horizontalLinePosition && (
<ChartLine
path={new Path()
.moveTo(0, horizontalLinePosition)
.lineTo(CHART_COLUMN_WIDTH, horizontalLinePosition)}
isNfpLine={true}
key="ltl"
/>
)}
{horizontalLinePosition && <ChartLine
path={new Path()
.moveTo(0, horizontalLinePosition)
.lineTo(CHART_COLUMN_WIDTH, horizontalLinePosition)
}
isNfpLine={true}
key='ltl'
/>}
{isVerticalLine && <ChartLine
path={new Path().moveTo(x, x).lineTo(x, columnHeight)}
isNfpLine={true}
key='fhm'
/>}
{data && typeof(data.y) !== 'undefined' && <DotAndLine
y={data.y}
exclude={data.temperatureExclude}
rightY={data.rightY}
rightTemperatureExclude={data.rightTemperatureExclude}
leftY={data.leftY}
leftTemperatureExclude={data.leftTemperatureExclude}
key='dotandline'
/>}
{isVerticalLine && (
<ChartLine
path={new Path().moveTo(x, x).lineTo(x, columnHeight)}
isNfpLine={true}
key="fhm"
/>
)}
{data && typeof data.y !== 'undefined' && (
<DotAndLine
y={data.y}
exclude={data.temperatureExclude}
rightY={data.rightY}
rightTemperatureExclude={data.rightTemperatureExclude}
leftY={data.leftY}
leftTemperatureExclude={data.leftTemperatureExclude}
key="dotandline"
/>
)}
</Surface>
)
}
@@ -64,8 +67,8 @@ TemperatureColumn.propTypes = {
const styles = StyleSheet.create({
container: {
backgroundColor: 'white'
}
backgroundColor: 'white',
},
})
export default TemperatureColumn