Custom renderers throw an error when using arrow functions
mbrimmer83 opened this issue · 2 comments
mbrimmer83 commented
When implementing a custom renderer that is an arrow function, an error is thrown isFunctional
Uncaught TypeError: Cannot read property 'render' of undefined. This appears to be do to the prototype being undefined on an arrow function.
https://github.com/instea/react-native-popup-menu/blob/master/src/MenuProvider.js#L17
madox2 commented
Thanks for reporting! You are right, arrow functions do not have prototype, isFunctional
function needs to be fixed.
sodik82 commented
can you try 0.15.8
?