Closed ririlya94 closed 5 years ago
Hi @ririlya94 ,
Do you mean to use state inside your renderHeader
function? Yes of course, don't forget to bind the function to this
on constructor:
this.renderHeader = this.renderHeader.bind(this);
You may want to take a look this demo: https://snack.expo.io/@budiadiono/react-native-custom-picker-custom-header
Thank you so much!! Finally its working
Hi there.. I'm trying to use the renderHeader for the custom picker and i'm trying to use my own state and function inside the renderHeader function. Is there anyway i can do or pass anything to those custom picker function? Thanks in advance
Here's my code:
-- render function ` render() {
}`
-- my renderheader function:
` renderHeader() {
) }`