Merge pull request #610 from navi-medici/temp_crash_fix

TP-0 | Indicator Fix
This commit is contained in:
Mantri Ramkishor
2023-10-10 11:43:40 +05:30
committed by GitHub
4 changed files with 7 additions and 8 deletions

View File

@@ -131,8 +131,8 @@ def reactNativeArchitectures() {
return value ? value.split(",") : ["armeabi-v7a", "x86", "x86_64", "arm64-v8a"]
}
def VERSION_CODE = 91
def VERSION_NAME = "2.4.7"
def VERSION_CODE = 92
def VERSION_NAME = "2.4.8"
android {
ndkVersion rootProject.ext.ndkVersion

View File

@@ -1,6 +1,6 @@
{
"name": "AV_APP",
"version": "2.4.7",
"version": "2.4.8",
"private": true,
"scripts": {
"android:dev": "yarn move:dev && react-native run-android",

View File

@@ -38,8 +38,7 @@ const PerformanceLevelGraph = () => {
const isBiggerBox = (box: Box) => box.id === performanceLevel?.currentLevel;
const selfLevelPosition =
((cashCollectedTillDate.self - cashCollectedTillDate.belowLevel) *
POINTER_POSITION_MULTIPLIER) /
((cashCollectedTillDate.self - cashCollectedTillDate.belowLevel) * 100) /
(cashCollectedTillDate.aboveLevel - cashCollectedTillDate.belowLevel + 1); // if denominator difference is 0 we are adding it to 1, to avoid calculation error, this should never happen i
const getBoxStyles = (box: Box) => {
@@ -82,7 +81,7 @@ const PerformanceLevelGraph = () => {
containerStyle={styles.dashedLineRight}
/>
)}
<View style={[styles.triangle, { left: selfLevelPosition - 5 }]} />
<View style={[styles.triangle, { left: `${selfLevelPosition - 7}%` }]} />
<DashedLine
dashGap={-1}
dashThickness={1.5}
@@ -92,7 +91,7 @@ const PerformanceLevelGraph = () => {
height: boxWidth * 1.125,
...GenericStyles.absolute,
top: 0,
left: selfLevelPosition,
left: `${selfLevelPosition}%`,
}}
/>
<Text