Story Block (React Native)
Integration
import {
StoryBlock,
} from 'react-native-firework-sdk';
// discover
<StoryBlock
style={{ height: 400 }}
source="discover"
/>
// channel
<StoryBlock
style={{ height: 400 }}
source="channel"
channel="your encoded channel id"
/>
// playlist
<StoryBlock
style={{ height: 400 }}
source="playlist"
playlist="your encoded playlist id"
channel="your encoded channel id"
/>
// dynamic content
<StoryBlock
style={{ height: 400 }}
source="dynamicContent"
channel="your encoded channel id"
dynamicContentParameters={{
'<cohort key>': ['<cohort value1>', '<cohort value2>'],
}}
/>
// hashtag playlist
<StoryBlock
style={{ height: 400 }}
source="hashtagPlaylist"
channel="your encoded channel id"
hashtagFilterExpression="<hashtag filter expression>"
/>
<StoryBlock
style={{ height: 400 }}
source="sku"
channel="your encoded channel id"
productIds={['prodct_id_1', 'product_id_2']}
/>
<StoryBlock
style={{ height: 400 }}
source="singleContent"
channel="your encoded vide or live stream id"
productIds={['prodct_id_1', 'product_id_2']}
/>Story block loading result callback
Story block configuration
Enable PiP(Picture in Picture)
Manually manage story block appearance
Why manual appearance management is needed
Driving viewport state from the host app
Example 1: The story block fills the whole screen
Example 2: The story block is embedded in a FlatList
Reference
Last updated
Was this helpful?