We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 497f16e commit 6a3671bCopy full SHA for 6a3671b
ios/RCTOneSignal/RCTOneSignalEventEmitter.m
@@ -199,6 +199,10 @@ + (void)sendEventWithName:(NSString *)name withBody:(NSDictionary *)body {
199
}
200
201
202
+RCT_EXPORT_METHOD(setLanguage:(NSString *)language) {
203
+ [OneSignal setLanguage:language];
204
+}
205
+
206
RCT_EXPORT_METHOD(setNotificationOpenedHandler) {
207
[OneSignal setNotificationOpenedHandler:^(OSNotificationOpenedResult *result) {
208
[RCTOneSignalEventEmitter sendEventWithName:@"OneSignal-remoteNotificationOpened" withBody:[result jsonRepresentation]];
0 commit comments