@didomi/react-native 1.7.0 → 1.8.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/android/build.gradle +1 -1
- package/android/gradle.properties +1 -1
- package/android/src/main/java/com/reactnativedidomi/DidomiModule.kt +138 -28
- package/android/src/main/java/com/reactnativedidomi/EventTypes.kt +3 -1
- package/ios/Didomi.m +78 -19
- package/ios/RNDidomi.swift +220 -89
- package/lib/commonjs/Constants.js +1 -1
- package/lib/commonjs/Constants.js.map +1 -1
- package/lib/commonjs/Didomi.js +71 -8
- package/lib/commonjs/Didomi.js.map +1 -1
- package/lib/commonjs/DidomiTypes.js +2 -0
- package/lib/commonjs/DidomiTypes.js.map +1 -1
- package/lib/module/Constants.js +1 -1
- package/lib/module/Constants.js.map +1 -1
- package/lib/module/Didomi.js +71 -8
- package/lib/module/Didomi.js.map +1 -1
- package/lib/module/DidomiTypes.js +2 -0
- package/lib/module/DidomiTypes.js.map +1 -1
- package/lib/typescript/Constants.d.ts +1 -1
- package/lib/typescript/Didomi.d.ts +52 -5
- package/lib/typescript/DidomiTypes.d.ts +4 -1
- package/package.json +1 -4
- package/react-native-didomi.podspec +1 -1
- package/src/Constants.ts +1 -1
- package/src/Didomi.ts +149 -49
- package/src/DidomiTypes.ts +3 -0
package/android/build.gradle
CHANGED
|
@@ -176,6 +176,16 @@ class DidomiModule(reactContext: ReactApplicationContext) : ReactContextBaseJava
|
|
|
176
176
|
* Sync error
|
|
177
177
|
*/
|
|
178
178
|
override fun syncError(event: SyncErrorEvent) = prepareEvent(EventTypes.SYNC_ERROR.event, event.error)
|
|
179
|
+
|
|
180
|
+
/**
|
|
181
|
+
* Language updated
|
|
182
|
+
*/
|
|
183
|
+
override fun languageUpdated(event: LanguageUpdatedEvent) = prepareEvent(EventTypes.LANGUAGE_UPDATED.event, event.languageCode)
|
|
184
|
+
|
|
185
|
+
/**
|
|
186
|
+
* Language update failed
|
|
187
|
+
*/
|
|
188
|
+
override fun languageUpdateFailed(event: LanguageUpdateFailedEvent) = prepareEvent(EventTypes.LANGUAGE_UPDATE_FAILED.event, event.reason)
|
|
179
189
|
}
|
|
180
190
|
|
|
181
191
|
override fun getName() = "Didomi"
|
|
@@ -622,6 +632,12 @@ class DidomiModule(reactContext: ReactApplicationContext) : ReactContextBaseJava
|
|
|
622
632
|
promise.resolve(Didomi.getInstance().isReady)
|
|
623
633
|
}
|
|
624
634
|
|
|
635
|
+
@ReactMethod
|
|
636
|
+
fun clearUser(promise: Promise) {
|
|
637
|
+
Didomi.getInstance().clearUser()
|
|
638
|
+
promise.resolve(0)
|
|
639
|
+
}
|
|
640
|
+
|
|
625
641
|
@ReactMethod
|
|
626
642
|
fun setUser(organizationUserId: String,
|
|
627
643
|
organizationUserIdAuthAlgorithm: String?,
|
|
@@ -647,6 +663,12 @@ class DidomiModule(reactContext: ReactApplicationContext) : ReactContextBaseJava
|
|
|
647
663
|
promise.resolve(0)
|
|
648
664
|
}
|
|
649
665
|
|
|
666
|
+
@ReactMethod
|
|
667
|
+
fun setUserAndSetupUI(organizationUserId: String, promise: Promise) {
|
|
668
|
+
Didomi.getInstance().setUser(organizationUserId, currentActivity as? FragmentActivity)
|
|
669
|
+
promise.resolve(0)
|
|
670
|
+
}
|
|
671
|
+
|
|
650
672
|
@ReactMethod
|
|
651
673
|
fun setUserWithHashAuth(organizationUserId: String,
|
|
652
674
|
algorithm: String,
|
|
@@ -654,13 +676,35 @@ class DidomiModule(reactContext: ReactApplicationContext) : ReactContextBaseJava
|
|
|
654
676
|
digest: String,
|
|
655
677
|
salt: String?,
|
|
656
678
|
promise: Promise) {
|
|
657
|
-
Didomi.getInstance().setUser(
|
|
658
|
-
|
|
659
|
-
|
|
660
|
-
|
|
661
|
-
|
|
662
|
-
|
|
663
|
-
|
|
679
|
+
Didomi.getInstance().setUser(
|
|
680
|
+
UserAuthWithHashParams(
|
|
681
|
+
organizationUserId,
|
|
682
|
+
algorithm,
|
|
683
|
+
secretId,
|
|
684
|
+
digest,
|
|
685
|
+
salt
|
|
686
|
+
)
|
|
687
|
+
)
|
|
688
|
+
promise.resolve(0)
|
|
689
|
+
}
|
|
690
|
+
|
|
691
|
+
@ReactMethod
|
|
692
|
+
fun setUserWithHashAuthAndSetupUI(organizationUserId: String,
|
|
693
|
+
algorithm: String,
|
|
694
|
+
secretId: String,
|
|
695
|
+
digest: String,
|
|
696
|
+
salt: String?,
|
|
697
|
+
promise: Promise) {
|
|
698
|
+
Didomi.getInstance().setUser(
|
|
699
|
+
UserAuthWithHashParams(
|
|
700
|
+
organizationUserId,
|
|
701
|
+
algorithm,
|
|
702
|
+
secretId,
|
|
703
|
+
digest,
|
|
704
|
+
salt
|
|
705
|
+
),
|
|
706
|
+
currentActivity as? FragmentActivity
|
|
707
|
+
)
|
|
664
708
|
promise.resolve(0)
|
|
665
709
|
}
|
|
666
710
|
|
|
@@ -672,14 +716,38 @@ class DidomiModule(reactContext: ReactApplicationContext) : ReactContextBaseJava
|
|
|
672
716
|
salt: String?,
|
|
673
717
|
expiration: Int,
|
|
674
718
|
promise: Promise) {
|
|
675
|
-
Didomi.getInstance().setUser(
|
|
676
|
-
|
|
677
|
-
|
|
678
|
-
|
|
679
|
-
|
|
680
|
-
|
|
681
|
-
|
|
682
|
-
|
|
719
|
+
Didomi.getInstance().setUser(
|
|
720
|
+
UserAuthWithHashParams(
|
|
721
|
+
organizationUserId,
|
|
722
|
+
algorithm,
|
|
723
|
+
secretId,
|
|
724
|
+
digest,
|
|
725
|
+
salt,
|
|
726
|
+
expiration.toLong()
|
|
727
|
+
)
|
|
728
|
+
)
|
|
729
|
+
promise.resolve(0)
|
|
730
|
+
}
|
|
731
|
+
|
|
732
|
+
@ReactMethod
|
|
733
|
+
fun setUserWithHashAuthWithExpirationAndSetupUI(organizationUserId: String,
|
|
734
|
+
algorithm: String,
|
|
735
|
+
secretId: String,
|
|
736
|
+
digest: String,
|
|
737
|
+
salt: String?,
|
|
738
|
+
expiration: Int,
|
|
739
|
+
promise: Promise) {
|
|
740
|
+
Didomi.getInstance().setUser(
|
|
741
|
+
UserAuthWithHashParams(
|
|
742
|
+
organizationUserId,
|
|
743
|
+
algorithm,
|
|
744
|
+
secretId,
|
|
745
|
+
digest,
|
|
746
|
+
salt,
|
|
747
|
+
expiration.toLong()
|
|
748
|
+
),
|
|
749
|
+
currentActivity as? FragmentActivity
|
|
750
|
+
)
|
|
683
751
|
promise.resolve(0)
|
|
684
752
|
}
|
|
685
753
|
|
|
@@ -689,12 +757,32 @@ class DidomiModule(reactContext: ReactApplicationContext) : ReactContextBaseJava
|
|
|
689
757
|
secretId: String,
|
|
690
758
|
initializationVector: String,
|
|
691
759
|
promise: Promise) {
|
|
692
|
-
Didomi.getInstance().setUser(
|
|
693
|
-
|
|
694
|
-
|
|
695
|
-
|
|
696
|
-
|
|
697
|
-
|
|
760
|
+
Didomi.getInstance().setUser(
|
|
761
|
+
UserAuthWithEncryptionParams(
|
|
762
|
+
organizationUserId,
|
|
763
|
+
algorithm,
|
|
764
|
+
secretId,
|
|
765
|
+
initializationVector
|
|
766
|
+
)
|
|
767
|
+
)
|
|
768
|
+
promise.resolve(0)
|
|
769
|
+
}
|
|
770
|
+
|
|
771
|
+
@ReactMethod
|
|
772
|
+
fun setUserWithEncryptionAuthAndSetupUI(organizationUserId: String,
|
|
773
|
+
algorithm: String,
|
|
774
|
+
secretId: String,
|
|
775
|
+
initializationVector: String,
|
|
776
|
+
promise: Promise) {
|
|
777
|
+
Didomi.getInstance().setUser(
|
|
778
|
+
UserAuthWithEncryptionParams(
|
|
779
|
+
organizationUserId,
|
|
780
|
+
algorithm,
|
|
781
|
+
secretId,
|
|
782
|
+
initializationVector
|
|
783
|
+
),
|
|
784
|
+
currentActivity as? FragmentActivity
|
|
785
|
+
)
|
|
698
786
|
promise.resolve(0)
|
|
699
787
|
}
|
|
700
788
|
|
|
@@ -705,13 +793,35 @@ class DidomiModule(reactContext: ReactApplicationContext) : ReactContextBaseJava
|
|
|
705
793
|
initializationVector: String,
|
|
706
794
|
expiration: Int,
|
|
707
795
|
promise: Promise) {
|
|
708
|
-
Didomi.getInstance().setUser(
|
|
709
|
-
|
|
710
|
-
|
|
711
|
-
|
|
712
|
-
|
|
713
|
-
|
|
714
|
-
|
|
796
|
+
Didomi.getInstance().setUser(
|
|
797
|
+
UserAuthWithEncryptionParams(
|
|
798
|
+
organizationUserId,
|
|
799
|
+
algorithm,
|
|
800
|
+
secretId,
|
|
801
|
+
initializationVector,
|
|
802
|
+
expiration.toLong()
|
|
803
|
+
)
|
|
804
|
+
)
|
|
805
|
+
promise.resolve(0)
|
|
806
|
+
}
|
|
807
|
+
|
|
808
|
+
@ReactMethod
|
|
809
|
+
fun setUserWithEncryptionAuthWithExpirationAndSetupUI(organizationUserId: String,
|
|
810
|
+
algorithm: String,
|
|
811
|
+
secretId: String,
|
|
812
|
+
initializationVector: String,
|
|
813
|
+
expiration: Int,
|
|
814
|
+
promise: Promise) {
|
|
815
|
+
Didomi.getInstance().setUser(
|
|
816
|
+
UserAuthWithEncryptionParams(
|
|
817
|
+
organizationUserId,
|
|
818
|
+
algorithm,
|
|
819
|
+
secretId,
|
|
820
|
+
initializationVector,
|
|
821
|
+
expiration.toLong()
|
|
822
|
+
),
|
|
823
|
+
currentActivity as? FragmentActivity
|
|
824
|
+
)
|
|
715
825
|
promise.resolve(0)
|
|
716
826
|
}
|
|
717
827
|
|
|
@@ -33,5 +33,7 @@ enum class EventTypes(val event: String) {
|
|
|
33
33
|
PREFERENCES_CLICK_DISAGREE_TO_ALL_PURPOSES("on_preferences_click_disagree_to_all_purposes"),
|
|
34
34
|
PREFERENCES_CLICK_RESET_ALL_PURPOSES("on_preferences_click_reset_all_purposes"),
|
|
35
35
|
SYNC_DONE("on_sync_done"),
|
|
36
|
-
SYNC_ERROR("on_sync_error")
|
|
36
|
+
SYNC_ERROR("on_sync_error"),
|
|
37
|
+
LANGUAGE_UPDATED("on_language_updated"),
|
|
38
|
+
LANGUAGE_UPDATE_FAILED("on_language_update_failed");
|
|
37
39
|
}
|
package/ios/Didomi.m
CHANGED
|
@@ -3,10 +3,6 @@
|
|
|
3
3
|
|
|
4
4
|
@interface RCT_EXTERN_MODULE(Didomi, RCTEventEmitter)
|
|
5
5
|
|
|
6
|
-
RCT_EXTERN_METHOD(multiply:(float)a withB:(float)b
|
|
7
|
-
withResolver:(RCTPromiseResolveBlock)resolve
|
|
8
|
-
withRejecter:(RCTPromiseRejectBlock)reject)
|
|
9
|
-
|
|
10
6
|
RCT_EXTERN_METHOD(initialize:(NSString *)userAgentName
|
|
11
7
|
userAgentVersion:(NSString *)userAgentVersion
|
|
12
8
|
apiKey:(NSString *)apiKey
|
|
@@ -15,7 +11,9 @@ RCT_EXTERN_METHOD(initialize:(NSString *)userAgentName
|
|
|
15
11
|
providerId:(nullable NSString *)providerId
|
|
16
12
|
disableDidomiRemoteConfig:(BOOL)disableDidomiRemoteConfig
|
|
17
13
|
languageCode:(nullable NSString *)languageCode
|
|
18
|
-
noticeId:(nullable NSString *)noticeId
|
|
14
|
+
noticeId:(nullable NSString *)noticeId
|
|
15
|
+
resolve:(RCTPromiseResolveBlock)resolve
|
|
16
|
+
reject:(RCTPromiseRejectBlock)reject)
|
|
19
17
|
|
|
20
18
|
RCT_EXTERN_METHOD(onReady)
|
|
21
19
|
|
|
@@ -102,7 +100,8 @@ RCT_EXTERN_METHOD(setUserDisagreeToAll:(RCTPromiseResolveBlock)resolve
|
|
|
102
100
|
// Didomi.shared.onError(callback: callback)
|
|
103
101
|
// }
|
|
104
102
|
|
|
105
|
-
RCT_EXTERN_METHOD(reset)
|
|
103
|
+
RCT_EXTERN_METHOD(reset:(RCTPromiseResolveBlock)resolve
|
|
104
|
+
reject:(RCTPromiseRejectBlock)reject)
|
|
106
105
|
|
|
107
106
|
RCT_EXTERN_METHOD(getRequiredPurposeIds:(RCTPromiseResolveBlock)resolve
|
|
108
107
|
reject:(RCTPromiseRejectBlock)reject)
|
|
@@ -157,7 +156,9 @@ RCT_EXTERN_METHOD(getJavaScriptForWebView:(NSString *)extra
|
|
|
157
156
|
resolve:(RCTPromiseResolveBlock)resolve
|
|
158
157
|
reject:(RCTPromiseRejectBlock)reject)
|
|
159
158
|
|
|
160
|
-
RCT_EXTERN_METHOD(updateSelectedLanguage:(NSString *)languageCode
|
|
159
|
+
RCT_EXTERN_METHOD(updateSelectedLanguage:(NSString *)languageCode
|
|
160
|
+
resolve:(RCTPromiseResolveBlock)resolve
|
|
161
|
+
reject:(RCTPromiseRejectBlock)reject)
|
|
161
162
|
|
|
162
163
|
|
|
163
164
|
// MARK: ViewProviderDelegate
|
|
@@ -172,13 +173,17 @@ RCT_EXTERN_METHOD(getPreferencesViewController:(RCTPromiseResolveBlock)resolve
|
|
|
172
173
|
|
|
173
174
|
// MARK: Didomi extension
|
|
174
175
|
|
|
175
|
-
RCT_EXTERN_METHOD(setupUI)
|
|
176
|
+
RCT_EXTERN_METHOD(setupUI:(RCTPromiseResolveBlock)resolve
|
|
177
|
+
reject:(RCTPromiseRejectBlock)reject)
|
|
176
178
|
|
|
177
|
-
RCT_EXTERN_METHOD(forceShowNotice)
|
|
179
|
+
RCT_EXTERN_METHOD(forceShowNotice:(RCTPromiseResolveBlock)resolve
|
|
180
|
+
reject:(RCTPromiseRejectBlock)reject)
|
|
178
181
|
|
|
179
|
-
RCT_EXTERN_METHOD(showNotice)
|
|
182
|
+
RCT_EXTERN_METHOD(showNotice:(RCTPromiseResolveBlock)resolve
|
|
183
|
+
reject:(RCTPromiseRejectBlock)reject)
|
|
180
184
|
|
|
181
|
-
RCT_EXTERN_METHOD(hideNotice)
|
|
185
|
+
RCT_EXTERN_METHOD(hideNotice:(RCTPromiseResolveBlock)resolve
|
|
186
|
+
reject:(RCTPromiseRejectBlock)reject)
|
|
182
187
|
|
|
183
188
|
RCT_EXTERN_METHOD(isNoticeVisible:(RCTPromiseResolveBlock)resolve
|
|
184
189
|
reject:(RCTPromiseRejectBlock)reject)
|
|
@@ -186,9 +191,12 @@ RCT_EXTERN_METHOD(isNoticeVisible:(RCTPromiseResolveBlock)resolve
|
|
|
186
191
|
RCT_EXTERN_METHOD(shouldConsentBeCollected:(RCTPromiseResolveBlock)resolve
|
|
187
192
|
reject:(RCTPromiseRejectBlock)reject)
|
|
188
193
|
|
|
189
|
-
RCT_EXTERN_METHOD(showPreferences:(nullable NSString *)view
|
|
194
|
+
RCT_EXTERN_METHOD(showPreferences:(nullable NSString *)view
|
|
195
|
+
resolve:(RCTPromiseResolveBlock)resolve
|
|
196
|
+
reject:(RCTPromiseRejectBlock)reject)
|
|
190
197
|
|
|
191
|
-
RCT_EXTERN_METHOD(hidePreferences)
|
|
198
|
+
RCT_EXTERN_METHOD(hidePreferences:(RCTPromiseResolveBlock)resolve
|
|
199
|
+
reject:(RCTPromiseRejectBlock)reject)
|
|
192
200
|
|
|
193
201
|
RCT_EXTERN_METHOD(isPreferencesVisible:(RCTPromiseResolveBlock)resolve
|
|
194
202
|
reject:(RCTPromiseRejectBlock)reject)
|
|
@@ -201,37 +209,88 @@ RCT_EXTERN_METHOD(getText:(NSString *)key
|
|
|
201
209
|
resolve:(RCTPromiseResolveBlock)resolve
|
|
202
210
|
reject:(RCTPromiseRejectBlock)reject)
|
|
203
211
|
|
|
204
|
-
RCT_EXTERN_METHOD(setLogLevel:(int)minLevel
|
|
212
|
+
RCT_EXTERN_METHOD(setLogLevel:(int)minLevel
|
|
213
|
+
resolve:(RCTPromiseResolveBlock)resolve
|
|
214
|
+
reject:(RCTPromiseRejectBlock)reject)
|
|
215
|
+
|
|
216
|
+
RCT_EXTERN_METHOD(clearUser:(RCTPromiseResolveBlock)resolve
|
|
217
|
+
reject:(RCTPromiseRejectBlock)reject)
|
|
205
218
|
|
|
206
219
|
RCT_EXTERN_METHOD(setUser:(NSString *)id
|
|
207
220
|
algorithm:(nullable NSString *)algorithm
|
|
208
221
|
secretId:(nullable NSString *)secretId
|
|
209
222
|
salt:(nullable NSString *)salt
|
|
210
|
-
digest:(nullable NSString *)digest
|
|
223
|
+
digest:(nullable NSString *)digest
|
|
224
|
+
resolve:(RCTPromiseResolveBlock)resolve
|
|
225
|
+
reject:(RCTPromiseRejectBlock)reject)
|
|
226
|
+
|
|
227
|
+
RCT_EXTERN_METHOD(setUserAndSetupUI:(NSString *)id
|
|
228
|
+
resolve:(RCTPromiseResolveBlock)resolve
|
|
229
|
+
reject:(RCTPromiseRejectBlock)reject)
|
|
211
230
|
|
|
212
231
|
RCT_EXTERN_METHOD(setUserWithHashAuth:(NSString *)id
|
|
213
232
|
algorithm:(NSString *)algorithm
|
|
214
233
|
secretId:(NSString *)secretId
|
|
215
234
|
digest:(NSString *)digest
|
|
216
|
-
salt:(nullable NSString *)salt
|
|
235
|
+
salt:(nullable NSString *)salt
|
|
236
|
+
resolve:(RCTPromiseResolveBlock)resolve
|
|
237
|
+
reject:(RCTPromiseRejectBlock)reject)
|
|
238
|
+
|
|
239
|
+
RCT_EXTERN_METHOD(setUserWithHashAuthAndSetupUI:(NSString *)id
|
|
240
|
+
algorithm:(NSString *)algorithm
|
|
241
|
+
secretId:(NSString *)secretId
|
|
242
|
+
digest:(NSString *)digest
|
|
243
|
+
salt:(nullable NSString *)salt
|
|
244
|
+
resolve:(RCTPromiseResolveBlock)resolve
|
|
245
|
+
reject:(RCTPromiseRejectBlock)reject)
|
|
217
246
|
|
|
218
247
|
RCT_EXTERN_METHOD(setUserWithHashAuthWithExpiration:(NSString *)id
|
|
219
248
|
algorithm:(NSString *)algorithm
|
|
220
249
|
secretId:(NSString *)secretId
|
|
221
250
|
digest:(NSString *)digest
|
|
222
251
|
salt:(nullable NSString *)salt
|
|
223
|
-
expiration: (double)expiration
|
|
252
|
+
expiration: (double)expiration
|
|
253
|
+
resolve:(RCTPromiseResolveBlock)resolve
|
|
254
|
+
reject:(RCTPromiseRejectBlock)reject)
|
|
255
|
+
|
|
256
|
+
RCT_EXTERN_METHOD(setUserWithHashAuthWithExpirationAndSetupUI:(NSString *)id
|
|
257
|
+
algorithm:(NSString *)algorithm
|
|
258
|
+
secretId:(NSString *)secretId
|
|
259
|
+
digest:(NSString *)digest
|
|
260
|
+
salt:(nullable NSString *)salt
|
|
261
|
+
expiration: (double)expiration
|
|
262
|
+
resolve:(RCTPromiseResolveBlock)resolve
|
|
263
|
+
reject:(RCTPromiseRejectBlock)reject)
|
|
224
264
|
|
|
225
265
|
RCT_EXTERN_METHOD(setUserWithEncryptionAuth:(NSString *)id
|
|
226
266
|
algorithm:(NSString *)algorithm
|
|
227
267
|
secretId:(NSString *)secretId
|
|
228
|
-
initializationVector:(NSString *)initializationVector
|
|
268
|
+
initializationVector:(NSString *)initializationVector
|
|
269
|
+
resolve:(RCTPromiseResolveBlock)resolve
|
|
270
|
+
reject:(RCTPromiseRejectBlock)reject)
|
|
271
|
+
|
|
272
|
+
RCT_EXTERN_METHOD(setUserWithEncryptionAuthAndSetupUI:(NSString *)id
|
|
273
|
+
algorithm:(NSString *)algorithm
|
|
274
|
+
secretId:(NSString *)secretId
|
|
275
|
+
initializationVector:(NSString *)initializationVector
|
|
276
|
+
resolve:(RCTPromiseResolveBlock)resolve
|
|
277
|
+
reject:(RCTPromiseRejectBlock)reject)
|
|
229
278
|
|
|
230
279
|
RCT_EXTERN_METHOD(setUserWithEncryptionAuthWithExpiration:(NSString *)id
|
|
231
280
|
algorithm:(NSString *)algorithm
|
|
232
281
|
secretId:(NSString *)secretId
|
|
233
282
|
initializationVector:(NSString *)initializationVector
|
|
234
|
-
expiration: (double)expiration
|
|
283
|
+
expiration: (double)expiration
|
|
284
|
+
resolve:(RCTPromiseResolveBlock)resolve
|
|
285
|
+
reject:(RCTPromiseRejectBlock)reject)
|
|
286
|
+
|
|
287
|
+
RCT_EXTERN_METHOD(setUserWithEncryptionAuthWithExpirationAndSetupUI:(NSString *)id
|
|
288
|
+
algorithm:(NSString *)algorithm
|
|
289
|
+
secretId:(NSString *)secretId
|
|
290
|
+
initializationVector:(NSString *)initializationVector
|
|
291
|
+
expiration: (double)expiration
|
|
292
|
+
resolve:(RCTPromiseResolveBlock)resolve
|
|
293
|
+
reject:(RCTPromiseRejectBlock)reject)
|
|
235
294
|
|
|
236
295
|
RCT_EXTERN_METHOD(supportedEvents)
|
|
237
296
|
|