Skip to content

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
eduardoleal committed Aug 1, 2019
1 parent 961d297 commit 8c516f9
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 269 deletions.
7 changes: 4 additions & 3 deletions index.js
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');
}
}
3 changes: 1 addition & 2 deletions ios/RNBlipChat.h
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
#import <React/RCTBridgeModule.h>
#endif

@interface RNReactNativeBlipChat : NSObject <RCTBridgeModule>
@interface RNBlipChat : NSObject <RCTBridgeModule>

@end

10 changes: 5 additions & 5 deletions ios/RNBlipChat.m
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
259 changes: 0 additions & 259 deletions ios/RNBlipChat.xcodeproj/project.pbxproj

This file was deleted.

0 comments on commit 8c516f9

Please sign in to comment.