Skip to content

Commit

Permalink
merging changes
Browse files Browse the repository at this point in the history
  • Loading branch information
Saranshmalik committed Jun 30, 2020
2 parents 8474a62 + 0197a93 commit e2c3443
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 4 deletions.
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@

# react-native-zendesk
# react-native-zendesk [![npm version](https://badge.fury.io/js/react-native-zendesk-v2.svg)](https://badge.fury.io/js/react-native-zendesk-v2)
[![NPM](https://nodei.co/npm/react-native-zendesk-v2.png?downloads=true&downloadRank=true&stars=true)](https://nodei.co/npm/react-native-zendesk-v2/)

React native wrapper for zendesk unified SDK. Supports both iOS and Android platforms.

# NOTICE
Expand Down
1 change: 1 addition & 0 deletions _config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
theme: jekyll-theme-architect
2 changes: 1 addition & 1 deletion android/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.saranshmalik.rnzendeskchat">
</manifest>


Original file line number Diff line number Diff line change
Expand Up @@ -176,4 +176,4 @@ public void startChat(ReadableMap options) {
}

}
}
}
4 changes: 3 additions & 1 deletion ios/RNZendeskChat.m
Original file line number Diff line number Diff line change
Expand Up @@ -88,10 +88,13 @@ @implementation RNZendeskChat
[ZDKChat initializeWithAccountKey:key queue:dispatch_get_main_queue()];
}

<<<<<<< HEAD
RCT_EXPORT_METHOD(setPrimaryColor:(NSString *)color) {
[ZDKCommonTheme currentTheme].primaryColor = [self colorFromHexString:color];
}

=======
>>>>>>> 0197a93e1397af27dbf285d111f2f286df8d6745
- (UIColor *)colorFromHexString:(NSString *)hexString {
unsigned rgbValue = 0;
NSScanner *scanner = [NSScanner scannerWithString:hexString];
Expand Down Expand Up @@ -127,7 +130,6 @@ - (void) showHelpCenterFunction:(NSDictionary *)options {
// target: self
// action: @selector(chatClosedClicked)];


UIViewController *topController = [UIApplication sharedApplication].keyWindow.rootViewController;
while (topController.presentedViewController) {
topController = topController.presentedViewController;
Expand Down

0 comments on commit e2c3443

Please sign in to comment.