NativeBase icon indicating copy to clipboard operation
NativeBase copied to clipboard

Input value and floating label

Open luksfk opened this issue 9 years ago • 47 comments

Hi,

I'm using floating label on a simple input. When I pass value to this component, the label subscribe the value. If I enter the input and press something, label works nice. I tried autoFocus but when I just exit, label subscribe again.

image

image

"native-base": "^2.0.12", "react-native": "0.42.0", "react": "15.4.2"

luksfk avatar Mar 10 '17 16:03 luksfk

icon color also not working for Form item floating labels #629

iiitmahesh avatar Mar 11 '17 09:03 iiitmahesh

cc @shivrajkumar

sankhadeeproy007 avatar Mar 13 '17 06:03 sankhadeeproy007

I've got the same problem

baptwaels avatar Apr 03 '17 14:04 baptwaels

Same problem for me. I connected form-redux and every time I leave the input the floating label goes back as it assumes the text field is empty.

fkrauthan avatar Apr 27 '17 21:04 fkrauthan

@luksfk are you using redux-form by any chance and run into this issue?

fkrauthan avatar Apr 28 '17 17:04 fkrauthan

+1 . Any news on this ?

Colmea avatar May 09 '17 06:05 Colmea

@fkrauthan yes, i'm using redux.

luksfk avatar May 10 '17 23:05 luksfk

@luksfk My issue was that I was doing something like this:

<Field name="lastName" component={() => this.renderMyInput()} type="text"/>

This recreated the input field every time I was pressing a key. After changing this to the recommended way of

<Field name="lastName" component={this.renderMyInput} type="text"/>

It was working fine. I think native base has a problem with there javascript code if the underlying input field gets recreated instead of just updated.

fkrauthan avatar May 15 '17 05:05 fkrauthan

is in production?

BrunoQuaresma avatar Jun 06 '17 00:06 BrunoQuaresma

when will this be available in production ?

yugalbagul avatar Jun 08 '17 07:06 yugalbagul

By the end of this week.

sankhadeeproy007 avatar Jun 08 '17 10:06 sankhadeeproy007

Fixed with 2.1.5

sankhadeeproy007 avatar Jun 09 '17 14:06 sankhadeeproy007

Check the latest version 2.2

shivrajkumar avatar Jul 03 '17 05:07 shivrajkumar

@sankhadeeproy007 When 2.1.5 will be release? The latest release to me is 2.1.4

oximer avatar Jul 06 '17 20:07 oximer

@oximer The latest of NativeBase is 2.2.1 Check the release tags

shivrajkumar avatar Jul 11 '17 05:07 shivrajkumar

@shivrajkumar for me this issue is not resolved in 2.2.1, and is the same as https://github.com/GeekyAnts/NativeBase/issues/1073

slorber avatar Aug 08 '17 19:08 slorber

working fine on iOS simulator but overlapping in iPhone

ghost avatar Sep 06 '17 07:09 ghost

Is there a chance the release build is not right here? This appears to work in Debug, but not Release, even in the simulator.

blkmutt avatar Jan 12 '18 15:01 blkmutt

@akhil-geekyants for what it's worth, in glamorous-native we had a problem affecting only release builds. I have no idea if this is related but as people report it's only affecting release it might be worth checking.

On new RN versions, only in release mode, the exported View is not a function but is a string "RCTView" while it was previously a function. If lib code expects a function it might break.

See here for more details: https://github.com/robinpowered/glamorous-native/pull/85

slorber avatar Jan 12 '18 15:01 slorber

Not big on the "me too" comments but I'm bumping into this in release builds and not totally sure what to do to mitigate.

ryanlanciaux avatar Jan 16 '18 19:01 ryanlanciaux