Skip to content

Commit 8115b7d

Browse files
committed
fixes
1 parent c0eb817 commit 8115b7d

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

src/stories/StoryContainer.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,9 @@ const StoryContainer = (props: StoryContainerProps) => {
7373
if (position < props.images.length) {
7474
setProgressIndex(position);
7575
} else {
76-
props.onComplete();
76+
if (typeof props.onComplete === "function") {
77+
props.onComplete();
78+
}
7779
}
7880
}
7981
}

src/stories/StoryView.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ const styles = StyleSheet.create({
4242
},
4343
imgStyle: {
4444
width: Dimensions.get("window").width,
45-
height: Dimensions.get("window").width,
45+
height: Dimensions.get("window").height,
4646
alignSelf: "center",
4747
resizeMode: "stretch",
4848
},

0 commit comments

Comments
 (0)