We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c0eb817 commit 8115b7dCopy full SHA for 8115b7d
src/stories/StoryContainer.tsx
@@ -73,7 +73,9 @@ const StoryContainer = (props: StoryContainerProps) => {
73
if (position < props.images.length) {
74
setProgressIndex(position);
75
} else {
76
- props.onComplete();
+ if (typeof props.onComplete === "function") {
77
+ props.onComplete();
78
+ }
79
}
80
81
src/stories/StoryView.tsx
@@ -42,7 +42,7 @@ const styles = StyleSheet.create({
42
},
43
imgStyle: {
44
width: Dimensions.get("window").width,
45
- height: Dimensions.get("window").width,
+ height: Dimensions.get("window").height,
46
alignSelf: "center",
47
resizeMode: "stretch",
48
0 commit comments