NativeBase icon indicating copy to clipboard operation
NativeBase copied to clipboard

Static value of floatUp() in Item component

Open Xvie opened this issue 8 years ago • 6 comments

Expected behaviour

Possibility to change Item .floatingLabel floatUp valuedynamically via props with default value of-16` (as it is now)

Actual behaviour

Hardcoded, unable to be changed value on floatUp animation in Item.floatingLabel

Is the bug present in both ios and android or in any one of them?

yes

Any other additional info which would help us debug the issue quicker.

not needed

Xvie avatar Jan 12 '18 10:01 Xvie

@Xvie Is that you want to have different values with floatUp() by passing props dynamically OR You want it to customizable with theme

SupriyaKalghatgi avatar Jan 12 '18 10:01 SupriyaKalghatgi

@SupriyaKalghatgi i think passing it through props it's much easier to implement, so i think props are okay.

Xvie avatar Jan 12 '18 10:01 Xvie

@Xvie What is the difficulty you are finding?

SupriyaKalghatgi avatar Jan 12 '18 10:01 SupriyaKalghatgi

@Xvie If you look into the code of Item, the value for floatUp() is static

SupriyaKalghatgi avatar Jan 12 '18 10:01 SupriyaKalghatgi

Yea and i think it would be great if it's dynamic.

Xvie avatar Jan 12 '18 12:01 Xvie

@Xvie We dont have plans to make it dynamic This will remain static

SupriyaKalghatgi avatar Jan 15 '18 04:01 SupriyaKalghatgi