Skip to content
This repository was archived by the owner on Sep 22, 2021. It is now read-only.

Commit 61452e2

Browse files
committed
update
1 parent 53bc6bc commit 61452e2

File tree

1 file changed

+16
-16
lines changed

1 file changed

+16
-16
lines changed

README.md

+16-16
Original file line numberDiff line numberDiff line change
@@ -6,30 +6,30 @@ You must integrate the documentaion Talkable IOS SDK http://docs.talkable.com/io
66
After you create Native Module IOS for calling the methods of Talkable IOS SDK from React Native Application:
77

88
1. Create your module files
9-
Open the workspace for your app in Xcode and create a new file. Select Cocoa Touch Class to create both a header and an implementation file.
10-
Make sure it subclasses NSObject and save it in your App folder.
9+
Open the workspace for your app in Xcode and create a new file. Select Cocoa Touch Class to create both a header and an implementation file.
10+
Make sure it subclasses NSObject and save it in your App folder.
1111
2. Update your header file
12-
A .h header file contains all the information about a class that should be publicly known like properties and functions.
13-
Update your header file to implement React’s RCTBridgeModule:
12+
A .h header file contains all the information about a class that should be publicly known like properties and functions.
13+
Update your header file to implement React’s RCTBridgeModule:
1414

15-
TalkableBridge.h ( ios/TalkableBridge/TalkableBridge.h)
15+
TalkableBridge.h ( ios/TalkableBridge/TalkableBridge.h)
1616

1717
3. Update your implementation file
18-
A .m implementation file contains the implementations of all functions listed in the header and any private instance variables and methods.
18+
A .m implementation file contains the implementations of all functions listed in the header and any private instance variables and methods.
1919

20-
Your class should contain two macros, RCT_EXPORT_MODULE() and RCT_EXPORT_METHOD() . Update your .m file to implement these two macros.
20+
Your class should contain two macros, RCT_EXPORT_MODULE() and RCT_EXPORT_METHOD() . Update your .m file to implement these two macros.
2121

22-
RCT_EXPORT_MODULE registers our module with the bridge. It takes an optional argument in case you want to name the JavaScript (JS) module differently to the Objective-C class name.
22+
RCT_EXPORT_MODULE registers our module with the bridge. It takes an optional argument in case you want to name the JavaScript (JS) module differently to the Objective-C class name.
2323

24-
RCT_EXPORT_METHOD macro exposes our new method to JS. In this case, we’re just logging the supplied argument back to the console.
24+
RCT_EXPORT_METHOD macro exposes our new method to JS. In this case, we’re just logging the supplied argument back to the console.
2525

26-
You must call all native method of Talkable SDK IOS in the main thread.
27-
28-
dispatch_async(dispatch_get_main_queue(), ^{
29-
[[Talkable manager] registerOrigin:TKBLAffiliateMember params:nil];
30-
});
31-
32-
TalkableBridge.m (ios/TalkableBridge/TalkableBridge.m)
26+
You must call all native method of Talkable SDK IOS in the main thread.
27+
```
28+
dispatch_async(dispatch_get_main_queue(), ^{
29+
[[Talkable manager] registerOrigin:TKBLAffiliateMember params:nil];
30+
});
31+
```
32+
TalkableBridge.m (ios/TalkableBridge/TalkableBridge.m)
3333

3434
4. Use your Talkable Native Method in JS
3535
Our new method is now available in JS through the NativeModules object:

0 commit comments

Comments
 (0)