Skip to content

Commit ed4f555

Browse files
authored
Update ShareMenu.swift
1 parent 76f61c1 commit ed4f555

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

ios/Modules/ShareMenu.swift

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
12
@objc(ShareMenu)
23
class ShareMenu: RCTEventEmitter {
34

@@ -122,11 +123,10 @@ class ShareMenu: RCTEventEmitter {
122123

123124
callback([data as Any])
124125
sharedData = nil
125-
126126
removeData()
127-
128127
} catch {
129128
callback([])
129+
removeData()
130130
return
131131
}
132132
}
@@ -140,5 +140,6 @@ class ShareMenu: RCTEventEmitter {
140140
}
141141

142142
sendEvent(withName: NEW_SHARE_EVENT, body: finalData)
143+
removeData()
143144
}
144145
}

0 commit comments

Comments
 (0)