Nativebase: floating label overlapping value in the release mode

Created on 28 Feb 2018  ·  5Comments  ·  Source: GeekyAnts/NativeBase

Hi,

I'm using floating label on a simple input. When I pass value to this component, it's overlapping in the release mode, but in the debug mode Work well.

                    <Item floatingLabel last>
                        <Label>请输入您的用户名/手机号</Label>
                        <Input keyboardType={"email-address"}
                               value={this.state.username}
                               onChangeText={(username) => this.setState({username:username})}/>
                    </Item>
                    <Item floatingLabel last>
                        <Label>请输入您的密码</Label>
                        <Input secureTextEntry={true}
                               value={this.state.passward}
                               onChangeText={(passward) => this.setState({passward:passward})}/>
                    </Item>
                </Form>
<TouchableOpacity
                                onPress={() => this.props.navigation.navigate("Register",{returnData: this.returnData.bind(this)})}
                                style={{marginLeft:8}}>
                                <Text style={styles.text}>注册新账号</Text>
                            </TouchableOpacity>

 returnData(mobile, psw) {
        this.setState({username: mobile, passward: psw});
    }

wechatimg8958

react-native, react and native-base version

"native-base": "2.3.8",
"react-native": "0.49.3",
"react": "16.0.0-beta.5",

duplicate

Most helpful comment

This issue is still not fixed. The related issue #627 is closed for some reason. Doesn't anyone have fix for this?

All 5 comments

related to issue #627

This issue is still not fixed. The related issue #627 is closed for some reason. Doesn't anyone have fix for this?

+1 same issue

+1 same issue

+1 same issue

Was this page helpful?
0 / 5 - 0 ratings

Related issues

eggybot picture eggybot  ·  3Comments

nschurmann picture nschurmann  ·  3Comments

kitsune7 picture kitsune7  ·  3Comments

aloifolia picture aloifolia  ·  3Comments

muthuraman007 picture muthuraman007  ·  3Comments