forked from veeklabs/react-native-blip-chat
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
961d297
commit 8c516f9
Showing
4 changed files
with
10 additions
and
269 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,11 @@ | ||
|
||
import { NativeModules } from 'react-native'; | ||
// import { NativeModules } from 'react-native'; | ||
|
||
const { RNBlipChat } = NativeModules; | ||
// const { RNBlipChat } = NativeModules; | ||
|
||
export default { | ||
openThread: () => { | ||
RNBlipChat.addEvent('Test'); | ||
// console.log(JSON.stringify(NativeModules), 'UHUHS'); | ||
// RNBlipChat.addEvent('Test'); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,19 @@ | ||
|
||
#import "RNReactNativeBlipChat.h" | ||
#import "BlipChat/BlipChat.h" | ||
#import "RNBlipChat.h" | ||
#import <React/RCTLog.h> | ||
|
||
|
||
@implementation RNReactNativeBlipChat | ||
@implementation RNBlipChat | ||
|
||
- (dispatch_queue_t)methodQueue | ||
{ | ||
return dispatch_get_main_queue(); | ||
} | ||
RCT_EXPORT_MODULE(); | ||
|
||
RCT_EXPORT_METHOD(addEvent:(NSString *)name) | ||
RCT_EXPORT_METHOD(addEvent:(NSString *)name location:(NSString *)location) | ||
{ | ||
[BlipClient openBlipThreadWithMyView:self appKey:(NSString*) @"bm92YXZlZWs6NGEwMDY4NzktMWZjYS00ZjBkLThmNDEtYmJiMTg3MmE4NmMy" options:options error: nil]; | ||
RCTLogInfo(@"Pretending to create an event %@ at %@", name, location); | ||
} | ||
|
||
@end |
This file was deleted.
Oops, something went wrong.