You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Call the handleScroll() method when the user scrolls the flat list.
return<Viewstyle={{flex: 1,flexGrow: 1}}><FlatListonScroll={(event)=>handleScroll(event)}numColumns={2}keyExtractor={(item)=>item.Id}data={data}renderItem={(item)=>{return<View><Text>name is {" "+item.name}</Text><Text>age is {" "+item.age}</Text></View>}}/><Text>{scrollPosition}</Text></View>
The problem
I cannot get current scroll height from FlatList.
How to reproduce
Simplified test case:
Steps to reproduce:
Expected behavior
Environment (include versions). Did this work in previous versions?
"firebase": "8.2.3",
"react-is": "^16.8.0",
"expo-font": "~9.2.1",
"expo-status-bar": "~1.0.4",
"styled-components": "^5.3.3",
"@expo/vector-icons": "^12.0.0",
"react-native-screens": "~3.4.0",
"react-native-elements": "^3.4.2",
"react-native-tab-view": "^3.1.1",
"react-native-pager-view": "5.0.12",
"@react-navigation/native": "^6.0.6",
"react-native-toast-message": "^1.6.0",
"react-native-confirm-dialog": "^0.1.0",
"react-native-safe-area-context": "3.2.0",
"@react-native-community/checkbox": "^0.5.8",
"@react-navigation/material-top-tabs": "^6.0.6"
The text was updated successfully, but these errors were encountered: