react-native-image-viewer icon indicating copy to clipboard operation
react-native-image-viewer copied to clipboard

Help with renderHeader/Footer props not showing anything

Open dlujan opened this issue 4 years ago • 1 comments

I can't figure out how to use renderHeader and renderFooter. There's no example anywhere of this.

I'm putting these props inside ImageViewer but nothing new is showing. What do I need to fix?

renderHeader={(imageIndex) => <View><Text>asdfd</Text></View>} renderFooter={(imageIndex) => <View><Text>asdfd</Text></View>}

dlujan avatar Jul 29 '21 18:07 dlujan

Try this

renderHeader={(index) => (<View><Text}>Header</Text></View>)}

wasupak avatar Sep 10 '21 09:09 wasupak