Merge pull request #610 from navi-medici/temp_crash_fix
TP-0 | Indicator Fix
This commit is contained in:
Submodule RN-UI-LIB updated: 89dff942f5...b10108d97c
@@ -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
|
||||
|
||||
@@ -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",
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user