• 14
name

A PHP Error was encountered

Severity: Notice

Message: Undefined index: userid

Filename: views/question.php

Line Number: 191

Backtrace:

File: /home/prodcxja/public_html/questions/application/views/question.php
Line: 191
Function: _error_handler

File: /home/prodcxja/public_html/questions/application/controllers/Questions.php
Line: 433
Function: view

File: /home/prodcxja/public_html/questions/index.php
Line: 315
Function: require_once

name Punditsdkoslkdosdkoskdo

react native scrollToIndex does not work on android

I successfully used scrollToIndex for iOS but the same code is not working for android. Any idea?

this.list.scrollToIndex({animated: true, index: tempIndex, viewOffset:0,viewPosition:0});

and my flatlist

<FlatList
    ref={(ref) => { this.list = ref; }}
    initialNumToRender={15}
    data={searchData}
    scrollKey={'name'}
    reverse={false}
    itemHeight={30}
    renderItem={({ item }) => (
         <List
              item={item} selectItem={()=>this.selectItem(item)}
         />
    )}
    refreshing={isFetching}
    keyExtractor={item => item._id}
    onRefresh={this.handleRefresh}
/>