Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 3 additions & 7 deletions ios/RNStoryShare.swift
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@ class RNStoryShare: NSObject{
let type: String = RCTConvert.nsString(config["type"] ?? FILE)
let captionText: String = RCTConvert.nsString(config["captionText"]) ?? ""

let snap: SCSDKSnapContent
var snap: SCSDKSnapContent

if (config["media"] as? String == "photo") {
if (backgroundAsset != nil) {
Expand All @@ -207,12 +207,8 @@ class RNStoryShare: NSObject{
snap = SCSDKPhotoSnapContent(snapPhoto: photo)
} else {
snap = SCSDKNoSnapContent()
}
snap = SCSDKPhotoSnapContent(snapPhoto: photo)
snap.caption = captionText
}else{
snap = SCSDKNoSnapContent()
snap.caption = captionText
snap.caption = captionText
}
_shareToSnapchat(snap,stickerAsset: stickerAsset, attributionLink: attributionLink, type: type, resolve: resolve, reject: reject)
} else if (config["media"] as? String == "video") {
if (backgroundAsset != nil) {
Expand Down