Nativebase: Using Icon inside Item with floatingLabel hangs the app.

Created on 15 Aug 2019  路  3Comments  路  Source: GeekyAnts/NativeBase

I have gone through these following points

Issue Description

I think I found a bug related to the use of <Item floatingLabel> in conjunction with <Icon/>

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

node 10.16.2
npm 6.10.3
react 16.8.3
react-native: 0.59.8
native-base 2.13.4
expo 34.0.3

Expected behaviour

The app to be rendered.

Actual behaviour

Rendering is hanging.

Steps to reproduce

This is a simple application created with expo. I only changed the main app. To reproduce the problem change const 'float' to true.

import React from 'react';
import {Root, Container, Header, Form, Label, Item, Input, Text, Icon} from 'native-base';

const float = false;

export default function App() {

    return (
        <Root>
            <Header/>
            <Container>
                <Text>Any text</Text>
                <Item floatingLabel={float}>
                    <Label>Field label</Label>
                    <Input/>
                    <Icon type='Ionicons' name='md-eye'/>
                </Item>
            </Container>
        </Root>
    );

}

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

Yes.

Additional information

I tried to downgrade native-base to 2.13.0 but no success. The problem started after update from 2.12.1.

bug

Most helpful comment

Just tested the new release. Problem solved. Thanks for the great work.

All 3 comments

confirmed. same behavior. happens after 2.12.1

This has been merged and is available in our latest release v.2.13.5. This should resolve the issue.

Thank you for reporting!

Just tested the new release. Problem solved. Thanks for the great work.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

eggybot picture eggybot  路  3Comments

natashache picture natashache  路  3Comments

Landerson352 picture Landerson352  路  3Comments

kitsune7 picture kitsune7  路  3Comments

nschurmann picture nschurmann  路  3Comments