Skip to content
This repository has been archived by the owner on Sep 28, 2021. It is now read-only.

Help with renderHeader/Footer props not showing anything #481

Open
dlujan opened this issue Jul 29, 2021 · 1 comment
Open

Help with renderHeader/Footer props not showing anything #481

dlujan opened this issue Jul 29, 2021 · 1 comment

Comments

@dlujan
Copy link

dlujan commented Jul 29, 2021

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>}

@wasupak
Copy link

wasupak commented Sep 10, 2021

Try this

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants