stories | InstagramStoryProps[] | required | An array of stories. |
saveProgress | boolean | false | Whether to save and track the progress of seen stories. |
avatarBorderColors | string[] | DEFAULT_COLORS | Border colors of story avatars. |
avatarSeenBorderColors | string[] | ['#2A2A2C'] | Border colors of seen story avatars. |
avatarSize | number | 60 | The size of the story avatars. |
storyAvatarSize | number | 25 | The size of the avatars shown in the header of each story. |
avatarListContainerStyle | ScrollViewProps['contentContainerStyle'] | FlashListProps | | Styles for the avatar scroll list container. |
avatarListContainerProps | ScrollViewProps | | Props for the avatar list ScrollView. |
containerStyle | ViewStyle | | Styles for the story container. |
textStyle | TextStyle | | Styles for text elements. |
animationDuration | number | 10000 | Duration of story animations in ms. |
videoAnimationMaxDuration | number | | Max duration of video animations in ms. If omitted, the whole video plays. |
backgroundColor | string | '#000000' | Background color of story container. |
showName | boolean | false | Show user name under avatar in avatar list. |
nameTextStyle | TextStyle | { width: avatarSize + 10 } | Styles for name text elements. |
nameTextProps | TextProps | | Props for the name Text component. |
videoProps | react-native-video props | | Additional props for the video component. |
closeIconColor | string | '#00000099' | Color of story close icon. |
progressColor | string | '#00000099' | Background color of progress bar item in inactive state. |
progressActiveColor | string | '#FFFFFF' | Background color of progress bar item in active state. |
modalAnimationDuration | number | 800 | Duration of modal animation (showing/closing). |
storyAnimationDuration | number | 800 | Duration of story animation (swiping left/right). |
mediaContainerStyle | ViewStyle | | Styles for media (video or image) container. |
imageStyles | ImageStyle | { width: WIDTH, aspectRatio: 0.5626 } | Styles for the image component. |
imageProps | ImageProps | | Props applied to the image component. |
isVisible | boolean | false | Whether to show modal on load. |
headerStyle | ViewStyle | | Styles for the story header. |
headerContainerStyle | ViewStyle | | Styles for the story header container. |
progressContainerStyle | ViewStyle | | Styles for the story progress container. |
hideAvatarList | boolean | false | Whether to hide the avatar scroll list. |
hideElementsOnLongPress | boolean | false | Hide all elements when story is paused by long press. |
hideOverlayOnLongPress | boolean | hideElementOnLongPress | If true, overlay hides on long press. If false, only header/progress bar hide. |
loopingStories | 'none' | 'onlyLast' | 'all' | 'none' | 'none': close after last; 'onlyLast': loop last user; 'all': loop all. |
statusBarTranslucent | boolean | false | Property passed to React Native Modal. |
loaderColor | string | '#FFFFFF' | Color of the loading spinner. |
loaderBackgroundColor | string | | Background color of the loading overlay. |
footerComponent | ReactNode | | Custom component added to the modal. |
imageOverlayView | ReactNode | | Image overlay component. |
onShow | (id: string) => void | | Callback when a story is shown. |
onHide | (id: string) => void | | Callback when a story is hidden. |
onSwipeUp | (userId?: string, storyId?: string) => void | | Callback when user swipes up. |
onStoryStart | (userId?: string, storyId?: string) => void | | Callback when story started. |
onStoryEnd | (userId?: string, storyId?: string) => void | | Callback when story ended. |