The Wayback Machine - https://web.archive.org/web/20201107095114/https://github.com/APSL/react-native-keyboard-aware-scroll-view/issues/380
Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Footer/bottom of the screen not visible with native-base iOS #380

Open
cristianoccazinsp opened this issue Aug 26, 2019 · 3 comments
Open

Footer/bottom of the screen not visible with native-base iOS #380

cristianoccazinsp opened this issue Aug 26, 2019 · 3 comments

Comments

@cristianoccazinsp
Copy link

@cristianoccazinsp cristianoccazinsp commented Aug 26, 2019

When using KeyboardAwareFlatList, any component rendered below it are not properly moved up when the keyboard is visible. Instead, an empty space is shown there.

Any ideas what's going on?

Sample code:

<SafeAreaView style={fixedStyles.modalContentStyle}>
  <Item style={fixedStyles.filterItem}>
    <Input value={this.state.filterStr} placeholder='Filter...' onChange={this.filterChange} ref={this.setRef} disableFullscreenUI={true}/>
  </Item>
  
  <KeyboardAwareFlatList
    style={fixedStyles.flatList}
    data={this.state.items}
    keyExtractor={this.keyExtractor}
    renderItem={this.renderItem}
    ListEmptyComponent={!this.state.loaded ? loadingText : (this.props.noResultsText || noResultsText)}
    removeClippedSubviews={true}
    maxToRenderPerBatch={pageSize / 2}
    initialNumToRender={pageSize}
    onEndReached={this.loadMore}
    onEndReachedThreshold={0.6}
    keyboardShouldPersistTaps={'handled'}
    enableResetScrollToCoords={false}
  />

  <View style={{width: '100%', flexDirection: 'row', justifyContent: 'space-between'}}>

    {this.props.close ?
      <Button
        onPress={this.props.onCancel}
        iconLeft
        transparent
        black
        >
        <Icon name='close' type='AntDesign'></Icon>
        <Text>{this.props.cancelButtonText || "Close"}</Text>
      </Button>
    : null}

    {this.props.extraAction || null}

    {!this.props.required ?
      <Button
        onPress={this.clear}
        transparent
        noSpacing={this.props.showTotal}
        black
      >
        <Text>{"Clear"}</Text>
      </Button>
    : null}

    {this.props.showTotal?
      <Button
        transparent
        black
      >
        <Text>{`Total: ${this.state.total}`}</Text>
      </Button>
    : null}
  </View>
</SafeAreaView>

Please see the captures below.

Screen Shot 2019-08-26 at 12 43 51

Screen Shot 2019-08-26 at 12 44 06

Screen Shot 2019-08-26 at 12 46 00

Screen Shot 2019-08-26 at 12 46 07

@edu1525
Copy link

@edu1525 edu1525 commented Aug 27, 2019

Did you solved it? Same issue here.

@cristianoccazinsp
Copy link
Author

@cristianoccazinsp cristianoccazinsp commented Aug 27, 2019

Not yet.

@Mavenic
Copy link

@Mavenic Mavenic commented Apr 20, 2020

Same issue here

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
3 participants
You can’t perform that action at this time.