我想页脚添加到我的flatList: 我试试这个代码:FlatListFooter无法显示
renderFooter =() => {
return (
<View
style={{
paddingVertical: 20,
borderTopWidth: 1,
borderColor: "#CED0CE"
}}
>
<Button> This is footer </Button>
</View>
);
}
<FlatList
data={menuData}
renderItem={({item}) => <DrawerItem navigation={this.props.navigation} screenName={item.screenName} icon={item.icon} name={item.name} key={item.key} />}
ListFooterComponent ={this.renderFooter}
/>
但运行时,会出现没有页脚。
任何帮助,请
你的意思是粘脚? – digit
是的,我的意思是这个文件 –