diff options
author | bobzel <zzzman@gmail.com> | 2020-09-08 19:26:24 -0400 |
---|---|---|
committer | bobzel <zzzman@gmail.com> | 2020-09-08 19:26:24 -0400 |
commit | 483a4d35ba2c522b889c7bd9b839a0af131ec0bb (patch) | |
tree | 3a0884933242089a38d37931fbb40253e7353ab7 /src/Utils.ts | |
parent | 1f1ecb0b86d166c67388e560c6716079e16ea962 (diff) |
updated the way NativeWidth/Height props work so that, when specified, they override locally specified values
Diffstat (limited to 'src/Utils.ts')
-rw-r--r-- | src/Utils.ts | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/Utils.ts b/src/Utils.ts index 6582e43ef..7dff1ac55 100644 --- a/src/Utils.ts +++ b/src/Utils.ts @@ -414,6 +414,8 @@ export function returnTrue() { return true; } export function returnFalse() { return false; } +export function returnVal(val1?: number, val2?: number) { return val1 !== undefined ? val1 : val2 !== undefined ? val2 : 0; } + export function returnOne() { return 1; } export function returnZero() { return 0; } |