Skip to content

react_native sdk to integrate Firework videos into react-native apps.

License

Notifications You must be signed in to change notification settings

loopsocial/react-native-firework-sdk

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Firework React Native SDK

The integration guide is https://docs.firework.tv/react-native-sdk/integration-guide-v2

How to run example app

Set up Firework app Id

  1. Get the Firework app ID from our business team.
  2. In ./FireworkRNSDKSample/ios/FireworkSdkExample/Info.plist, set the value of FireworkVideoAppID key to the Firework app ID.
  3. In ./FireworkRNSDKSample/android/app/build.gradle, set the value of fw_appid_production to the Firework app ID.

Install dependencies

  1. cd FireworkRNSDKSample
  2. npm install
  3. npm run ios_pod_install

Set up default shopping playlist(optional)

  1. Get the channel id and playlist id for the shopping playlist.
  2. In ./FireworkRNSDKSample/src/config/Feed.json, use the channel id and playlist id to update the value of defaultShoppingPlaylist

Run iOS exmaple app

npm run ios

Run Android exmaple app

npm run android