In React-Native FlatList onScroll event is not getting called

FlatList onScroll event is not firing at all for the below code: return ( <View style={styles.container}> <FlatList keyboardShouldPersistTaps={‘always’} data={data} onScroll={() => { console.log(‘test’); Keyboard.dismiss; //FlatList is not firing onScroll event }} renderItem={({ item, index }) => ( <ListItem item={item} index={index} /> )} keyExtractor={item => item.key} /> </View> );

Details

How can i put multiple line of “if elif ” in one line Python

This is my code and i want to put this all in one line: def GetKey(self, key): if key == “externalCode”: return “ExternalCode” elif key == “name”: return “Name” elif key == “description”: return “Description” elif key == “remind-indays”: return “RemindInDays” elif key == “is-delegate-supported”: return “IsDelegateSupported” elif key == “escalation”: return “Escalation”

Details