NativeBase icon indicating copy to clipboard operation
NativeBase copied to clipboard

Floating Label error on production mode

Open aufamiri opened this issue 7 years ago • 15 comments

Issue Description

Hi, I'm using floating label with a simple input. However when I set the value of the input, the floating label fails to float as it supposed to be, however if I focus on it the label will going up normally.

this is only happening on Production mode.

Screenshot_20190327_200623

node, npm, react-native, react and native-base version, expo version if used, xcode version

node : 11.11.0 expo : 2.13.0 native-base : 2.12.1 react-native: 0.57.1 react: 16.5.0

Expected behaviour

the same behaviour whether it is in production mode or debug mode

Steps to reproduce

here's the code : https://github.com/blankonn/floating-error

Is the bug present in both iOS and Android or in any one of them?

only test on android

aufamiri avatar Mar 27 '19 13:03 aufamiri

same error

geminiyellow avatar Apr 11 '19 05:04 geminiyellow

https://github.com/GeekyAnts/NativeBase/issues/1977#issuecomment-396146716

SupriyaKalghatgi avatar Apr 12 '19 10:04 SupriyaKalghatgi

Unfortunately, it didn't work...

While the issue that you mention is happened when the user is typing the input,

my issue is happened when I set the value of the input directly on start up of the screen

Sorry if I can't explain this better.. maybe you should check my provided repo and I will gladly provided required information if you need it. Thanks

aufamiri avatar Apr 12 '19 20:04 aufamiri

I have mentioned the issue number along with the comment, which does not state issue

SupriyaKalghatgi avatar Apr 13 '19 04:04 SupriyaKalghatgi

To me, this is happening when I load the value from asyncstorage.

for entry it is working fine but "In release mode only" it overlaps the label. It is a very old issue and keeps happening, and unfortunately, I saw many tickets closed with no solution.

aamir-munir avatar May 03 '19 06:05 aamir-munir

I have the same issue when I get data from API request

danhidsan avatar Jun 27 '19 11:06 danhidsan

Im having the same issue, I've tried several of the solutions posted related to this issue and still the same.

gsmitto avatar Jun 28 '19 20:06 gsmitto

I have the same issue

akhilesh-mourya avatar Oct 14 '19 20:10 akhilesh-mourya

I have the same issue

ngoclieu1996vn avatar Dec 24 '19 05:12 ngoclieu1996vn

I have the same issue with Native-base 2.12.1

Rachellin77 avatar Jan 07 '20 04:01 Rachellin77

Same issue with 2.13.8, if i open a Label with value the placeholder is over the text. Tested on Android Galaxy Tab (new device fully up to date)

ghost avatar Feb 13 '20 08:02 ghost

Same issue with 2.13.8. It only happens in production mode and in real devices, even if you debug in real devices it doesn't happen.

geocare avatar Feb 25 '20 12:02 geocare

Hey there this issue is still happening.

But you can force to render after a while:

const [timestamp, setTimestamp] = useState(Date.now())  

useEffect(()=>{
    setTimeout(()=>{
      setTimestamp(Date.now())
    },300);
},[]);

It is not the best/cleanest solution but it works.

fernandocastillo avatar Apr 22 '20 13:04 fernandocastillo

bug is still exist.

Kladislav avatar May 15 '20 15:05 Kladislav

still having this floating label issue but only on production. locally it is all fine

sfarazkhan avatar Jun 28 '22 06:06 sfarazkhan