ascoders / react-native-image-viewer

🚀 tiny & fast lib for react native image viewer pan and zoom
MIT License
2.45k stars 580 forks source link

renderFooter must return index #305

Closed Ovi closed 5 years ago

Ovi commented 5 years ago

renderFooter function must return the index, either it's used or not, else typescript will give error:

(parameter) index: number | undefined

Type 'undefined' cannot be used as an index type.ts(2538)