File tree Expand file tree Collapse file tree 4 files changed +85
-2
lines changed
ios/RCTJVerificationModule Expand file tree Collapse file tree 4 files changed +85
-2
lines changed Original file line number Diff line number Diff line change 1+ import {
2+ DeviceEventEmitter ,
3+ NativeModules ,
4+ Platform
5+ } from 'react-native'
6+
7+ const JVerificationModule = NativeModules . JVerificationModule
8+
9+ export default class JVerification {
10+ static initPush ( ) {
11+ JVerificationModule . setup ( )
12+ }
13+
14+
15+ }
Original file line number Diff line number Diff line change 88
99#import < Foundation/Foundation.h>
1010
11- @interface RCTJVerificationModule : NSObject
11+ #if __has_include(<React/RCTBridgeModule.h>)
12+ #import < React/RCTBridgeModule.h>
13+ #elif __has_include("RCTBridgeModule.h")
14+ #import " RCTBridgeModule.h"
15+ #elif __has_include("React/RCTBridgeModule.h")
16+ #import " React/RCTBridgeModule.h"
17+ #endif
18+
19+
20+
21+ @interface RCTJVerificationModule : NSObject <RCTBridgeModule>
1222
1323@end
Original file line number Diff line number Diff line change 88
99#import " RCTJVerificationModule.h"
1010
11+ #if __has_include(<React/RCTBridge.h>)
12+ #import < React/RCTEventDispatcher.h>
13+ #import < React/RCTRootView.h>
14+ #import < React/RCTBridge.h>
15+ #elif __has_include("RCTBridge.h")
16+ #import " RCTEventDispatcher.h"
17+ #import " RCTRootView.h"
18+ #import " RCTBridge.h"
19+ #elif __has_include("React/RCTBridge.h")
20+ #import " React/RCTEventDispatcher.h"
21+ #import " React/RCTRootView.h"
22+ #import " React/RCTBridge.h"
23+ #endif
24+
1125@implementation RCTJVerificationModule
1226
27+ RCT_EXPORT_MODULE ();
28+ @synthesize bridge = _bridge;
29+
30+ + (id )allocWithZone : (NSZone *)zone {
31+ static RCTJVerificationModule *sharedInstance = nil ;
32+ static dispatch_once_t onceToken;
33+ dispatch_once (&onceToken, ^{
34+ sharedInstance = [super allocWithZone: zone];
35+ });
36+ return sharedInstance;
37+ }
38+
39+ - (id )init {
40+ self = [super init ];
41+ return self;
42+ }
43+
44+ RCT_EXPORT_METHOD (setup) {
45+
46+ }
1347@end
Original file line number Diff line number Diff line change 1919 "bugs" : {
2020 "url" : " https://github.com/jpush/jverification-react-native/issues"
2121 },
22- "homepage" : " https://github.com/jpush/jverification-react-native#readme"
22+ "homepage" : " https://github.com/jpush/jverification-react-native#readme" ,
23+ "rnpm" : {
24+ "ios" : {
25+ "sharedLibraries" : [
26+ " libz" ,
27+ " UserNotifications" ,
28+ " CoreTelephony" ,
29+ " Security" ,
30+ " CFNetwork" ,
31+ " CoreFoundation" ,
32+ " SystemConfiguration" ,
33+ " Foundation" ,
34+ " UIKit" ,
35+ " libresolv" ,
36+ " CoreGraphics" ,
37+ " AdSupport" ,
38+ " CoreLocation" ,
39+ " libsqlite3" ,
40+ " MobileCoreServices"
41+ ]
42+ }
43+ },
44+ "peerDependencies" : {
45+ "jcore-react-native" : " >= 1.2.11"
46+ }
2347}
You can’t perform that action at this time.
0 commit comments