diff --git a/react-native-gutenberg-bridge/ios/RNReactNativeGutenbergBridge.swift b/react-native-gutenberg-bridge/ios/RNReactNativeGutenbergBridge.swift index ed1dbc997d..aead5bf2cb 100644 --- a/react-native-gutenberg-bridge/ios/RNReactNativeGutenbergBridge.swift +++ b/react-native-gutenberg-bridge/ios/RNReactNativeGutenbergBridge.swift @@ -1,6 +1,6 @@ struct GutenbergEvent { let name: String - let body: Any + let body: Any? } @objc (RNReactNativeGutenbergBridge) @@ -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)