Nativebase: When `TextInput` gets the focus, the `<Footer>` can't be topped up for ios

Created on 22 Nov 2017  路  6Comments  路  Source: GeekyAnts/NativeBase

When TextInput gets the focus, the <Footer> can't be topped up for ios,help...
image
image
@beausmith @aaray @designorant @MarceloAlves @yosmanyga

awaiting response

Most helpful comment

@lucianomlima can you try something like this

      <Container>
        <Header />
        <Content contentContainerStyle={{ flex: 1 }} scrollEnabled={false}>
          <ScrollView>

          {/* Content here */}

          </ScrollView>

           {/* Footer content here */}

        </Content>
      </Container>

All 6 comments

Have same problem!

Footer is designed to be fixed at the bottom and not scrollable. In this case, you can move the Footer's content to <Content/> and fix it at the bottom.

But when keyboard shows, the bottom is under keyboard or above keyboard?
I fix replace Content with ScrollView + KeyboardAvoidView, but is unstable for Android and iOS.

@lucianomlima can you try something like this

      <Container>
        <Header />
        <Content contentContainerStyle={{ flex: 1 }} scrollEnabled={false}>
          <ScrollView>

          {/* Content here */}

          </ScrollView>

           {/* Footer content here */}

        </Content>
      </Container>

@SupriyaKalghatgi why close this issue? It's not resolved yet.
@akhil-geekyants I will try.

@lucianomlima As explained above, Footer component is something which remains fixed at bottom of screen.
And your requirement is to have it scrollable, which is something specific to your project requirement. hence closed this after providing proper workaround

Was this page helpful?
0 / 5 - 0 ratings

Related issues

kitsune7 picture kitsune7  路  3Comments

natashache picture natashache  路  3Comments

nschurmann picture nschurmann  路  3Comments

Cotel picture Cotel  路  3Comments

natashache picture natashache  路  3Comments