Skip to content

Commit 36fb1ce

Browse files
committed
out of bounds index fix: renderFooter currentIndex
1 parent f4bd103 commit 36fb1ce

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: src/image-viewer.component.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -616,7 +616,7 @@ export default class ImageViewer extends React.Component<Props, State> {
616616
</View>
617617
)}
618618
<View style={[{ bottom: 0, position: 'absolute', zIndex: 9 }, this.props.footerContainerStyle]}>
619-
{this!.props!.renderFooter!(this.state.currentShowIndex || -1)}
619+
{this!.props!.renderFooter!(this.state.currentShowIndex || 0)}
620620
</View>
621621
</Animated.View>
622622
</Animated.View>

0 commit comments

Comments
 (0)