You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- stories: an array of stories fetched from the server
250
+
- initialStoryIndex: the index of the story that will be displayed first
251
+
- settings: story style settings
252
+
- onClose: callback triggered when the story viewer is closed
253
+
- sdk: links the component to the SDK to interact with the API
254
+
- code: story set code
255
+
*/
256
+
257
+
<StoryViewer
258
+
visible={storiesVisible}
259
+
stories={allStories}
260
+
initialStoryIndex={0}
261
+
settings={storiesSettings}
262
+
onClose={() => setStoriesVisible(false)}
263
+
sdk={sdk}
264
+
code="STORIES_CODE"
265
+
/>
266
+
267
+
209
268
```
210
269
211
270
After initializing the SDK, you can request a block of stories. To start initialization, follow the [instructions](#stories-initialization) in the Stories initialization section.
0 commit comments