Skip to content

Commit

Permalink
feat: add support to show StoryDetailItem Heade and Footer in Overlay
Browse files Browse the repository at this point in the history
  • Loading branch information
JonatanSalas committed Oct 27, 2020
1 parent 3e424dc commit 3cef899
Showing 1 changed file with 19 additions and 5 deletions.
24 changes: 19 additions & 5 deletions src/components/StoryDetailItem/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -103,11 +103,25 @@ export const StoryDetailItem: React.FC<StoryDetailItemProps> = ({
isVisible={visible && isCurrentStory}
overlayStyle={styles.overlayContainer}
>
<ActivityIndicator
animating
color="#FFFFFF"
style={styles.overlayIndicator}
/>
<>
<StoryDetailItemHeader
story={story}
muted={muted}
goBack={() => onBackPress()}
mute={() => setMuted(!muted)}
/>
<ActivityIndicator
animating
color="#FFFFFF"
style={styles.overlayIndicator}
/>
<StoryDetailItemFooter
story={story}
videoProgress={progress}
videoDuration={duration}
goBack={() => onBackPress()}
/>
</>
</Overlay>
<StoryDetailItemHeader
story={story}
Expand Down

0 comments on commit 3cef899

Please sign in to comment.