Skip to content

Commit

Permalink
Adjust optionality
Browse files Browse the repository at this point in the history
  • Loading branch information
chipsnyder committed Jun 17, 2020
1 parent 7997acb commit 8f13252
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
struct GutenbergEvent {
let name: String
let body: Any
let body: Any?
}

@objc (RNReactNativeGutenbergBridge)
Expand Down Expand Up @@ -214,7 +214,7 @@ public class RNReactNativeGutenbergBridge: RCTEventEmitter {
}
}

public override func sendEvent(withName name: String!, body: Any!) {
public override func sendEvent(withName name: String, body: Any?) {
DispatchQueue.main.async {
if self.hasObservers && self.queuedEvents.count == 0 {
super.sendEvent(withName: name, body: body)
Expand Down

0 comments on commit 8f13252

Please sign in to comment.