Skip to content

Commit 0b214e0

Browse files
authored
0.8.1 (#119)
* [Feature] v11 지원 및 다크모드 지원 (#115) * [Feature] v11 지원 및 다크모드 지원 * [Fix] 리뷰반영 * [Fix] isAppearance 삭제 후 toAppearance에 합침 * 0.8.1 (#118) * Android - 11.1.0 and ChannelButtonIcon * iOS - ChannelButtonIcon * 0.8.1 * [Fix] 리뷰반영
1 parent 6863867 commit 0b214e0

File tree

10 files changed

+217
-14
lines changed

10 files changed

+217
-14
lines changed

CHANGELOG.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,11 @@
1+
# 0.8.1
2+
3+
## Update
4+
* support android channel-io 11.1.0
5+
* support bootConfig - channelButtonOption - channelButtonIcon
6+
17
# 0.8.0
8+
29
## Update
310
* Updated channeltalk plugin v11
411
* Supports dark mode

RNChannelIO.podspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Pod::Spec.new do |s|
22
s.name = "RNChannelIO"
3-
s.version = "0.2.0"
3+
s.version = "0.2.1"
44
s.summary = "RNChannelIO"
55
s.description = "channel plugin for react native"
66
s.homepage = "https://channel.io"

android/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,5 +55,5 @@ repositories {
5555

5656
dependencies {
5757
implementation 'com.facebook.react:react-native'
58-
api 'io.channel:plugin-android:11.0.1'
58+
api 'io.channel:plugin-android:11.1.0'
5959
}

android/src/main/java/com/zoyi/channel/rn/Const.java

Lines changed: 20 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,10 +41,27 @@ public class Const {
4141
public static final String KEY_HIDE_DEFAULT_IN_APP_PUSH = "hideDefaultInAppPush";
4242
public static final String KEY_LAUNCHER_CONFIG = "launcherConfig";
4343

44-
// Launcher config
44+
// ChannelButtonOption
45+
public static final String KEY_ICON = "icon";
46+
public static final String KEY_CHANNEL_BUTTON_OPTION_ICON_CHAT_BUBBLE_FILLED = "chatBubbleFilled";
47+
public static final String KEY_CHANNEL_BUTTON_OPTION_ICON_CHAT_PROGRESS_FILLED = "chatProgressFilled";
48+
public static final String KEY_CHANNEL_BUTTON_OPTION_ICON_CHAT_QUESTION_FILLED = "chatQuestionFilled";
49+
public static final String KEY_CHANNEL_BUTTON_OPTION_ICON_CHAT_LIGHTNING_FILLED = "chatLightningFilled";
50+
public static final String KEY_CHANNEL_BUTTON_OPTION_ICON_CHAT_BUBBLE_ALT_FILLED = "chatBubbleAltFilled";
51+
public static final String KEY_CHANNEL_BUTTON_OPTION_ICON_SMS_FILLED = "smsFilled";
52+
public static final String KEY_CHANNEL_BUTTON_OPTION_ICON_COMMENT_FILLED = "commentFilled";
53+
public static final String KEY_CHANNEL_BUTTON_OPTION_ICON_SEND_FORWARD_FILLED = "sendForwardFilled";
54+
public static final String KEY_CHANNEL_BUTTON_OPTION_ICON_HELP_FILLED = "helpFilled";
55+
public static final String KEY_CHANNEL_BUTTON_OPTION_ICON_CHAT_PROGRESS = "chatProgress";
56+
public static final String KEY_CHANNEL_BUTTON_OPTION_ICON_CHAT_QUESTION = "chatQuestion";
57+
public static final String KEY_CHANNEL_BUTTON_OPTION_ICON_CHAT_BUBBLE_ALT = "chatBubbleAlt";
58+
public static final String KEY_CHANNEL_BUTTON_OPTION_ICON_SMS = "sms";
59+
public static final String KEY_CHANNEL_BUTTON_OPTION_ICON_COMMENT = "comment";
60+
public static final String KEY_CHANNEL_BUTTON_OPTION_ICON_SEND_FORWARD = "sendForward";
61+
public static final String KEY_CHANNEL_BUTTON_OPTION_ICON_COMMUNICATION = "communication";
62+
public static final String KEY_CHANNEL_BUTTON_OPTION_ICON_HEADSET = "headset";
4563
public static final String KEY_POSITION = "position";
46-
public static final String KEY_LAUNCHER_POSITION_RIGHT = "right";
47-
public static final String KEY_LAUNCHER_POSITION_LEFT = "left";
64+
public static final String KEY_CHANNEL_BUTTON_OPTION_POSITION_LEFT = "left";
4865
public static final String KEY_X_MARGIN = "xMargin";
4966
public static final String KEY_Y_MARGIN = "yMargin";
5067

android/src/main/java/com/zoyi/channel/rn/ParseUtils.java

Lines changed: 62 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
import javax.annotation.Nullable;
1515

1616
import io.channel.plugin.android.enumerate.BubblePosition;
17+
import io.channel.plugin.android.open.enumerate.ChannelButtonIcon;
1718
import io.channel.plugin.android.open.model.Appearance;
1819
import io.channel.plugin.android.open.option.BubbleOption;
1920

@@ -195,24 +196,77 @@ public static List<Object> toArrayList(ReadableArray readableArray) {
195196

196197
public static ChannelButtonOption toChannelButtonOption(ReadableMap channelButtonOptionMap) {
197198
if (channelButtonOptionMap != null) {
199+
String iconString = Utils.getString(channelButtonOptionMap, Const.KEY_ICON).getValue();
198200
String positionString = Utils.getString(channelButtonOptionMap, Const.KEY_POSITION).getValue();
199201
Double xPosition = Utils.getDouble(channelButtonOptionMap, Const.KEY_X_MARGIN).getValue();
200202
Double yPosition = Utils.getDouble(channelButtonOptionMap, Const.KEY_Y_MARGIN).getValue();
201203

202-
if (positionString != null && xPosition != null && yPosition != null) {
203-
switch (positionString) {
204-
case Const.KEY_LAUNCHER_POSITION_LEFT:
205-
return new ChannelButtonOption(ChannelButtonPosition.LEFT, xPosition.floatValue(), yPosition.floatValue());
206-
207-
case Const.KEY_LAUNCHER_POSITION_RIGHT:
208-
return new ChannelButtonOption(ChannelButtonPosition.RIGHT, xPosition.floatValue(), yPosition.floatValue());
209-
}
204+
if (iconString != null && positionString != null && xPosition != null && yPosition != null) {
205+
return new ChannelButtonOption(
206+
toChannelButtonIcon(iconString),
207+
toChannelButtonPosition(positionString),
208+
xPosition.floatValue(),
209+
yPosition.floatValue()
210+
);
211+
} else if (iconString != null) {
212+
return new ChannelButtonOption(toChannelButtonIcon(iconString));
213+
} else if (positionString != null && xPosition != null && yPosition != null) {
214+
return new ChannelButtonOption(toChannelButtonPosition(positionString), xPosition.floatValue(), yPosition.floatValue());
210215
}
211216
}
212217

213218
return null;
214219
}
215220

221+
private static ChannelButtonPosition toChannelButtonPosition(String positionString) {
222+
if (positionString.equals(Const.KEY_CHANNEL_BUTTON_OPTION_POSITION_LEFT)) {
223+
return ChannelButtonPosition.LEFT;
224+
} else {
225+
return ChannelButtonPosition.RIGHT;
226+
}
227+
}
228+
229+
private static ChannelButtonIcon toChannelButtonIcon(String iconString) {
230+
switch (iconString) {
231+
case Const.KEY_CHANNEL_BUTTON_OPTION_ICON_CHAT_BUBBLE_FILLED:
232+
return ChannelButtonIcon.ChatBubbleFilled;
233+
case Const.KEY_CHANNEL_BUTTON_OPTION_ICON_CHAT_PROGRESS_FILLED:
234+
return ChannelButtonIcon.ChatProgressFilled;
235+
case Const.KEY_CHANNEL_BUTTON_OPTION_ICON_CHAT_QUESTION_FILLED:
236+
return ChannelButtonIcon.ChatQuestionFilled;
237+
case Const.KEY_CHANNEL_BUTTON_OPTION_ICON_CHAT_LIGHTNING_FILLED:
238+
return ChannelButtonIcon.ChatLightningFilled;
239+
case Const.KEY_CHANNEL_BUTTON_OPTION_ICON_CHAT_BUBBLE_ALT_FILLED:
240+
return ChannelButtonIcon.ChatBubbleAltFilled;
241+
case Const.KEY_CHANNEL_BUTTON_OPTION_ICON_SMS_FILLED:
242+
return ChannelButtonIcon.SmsFilled;
243+
case Const.KEY_CHANNEL_BUTTON_OPTION_ICON_COMMENT_FILLED:
244+
return ChannelButtonIcon.CommentFilled;
245+
case Const.KEY_CHANNEL_BUTTON_OPTION_ICON_SEND_FORWARD_FILLED:
246+
return ChannelButtonIcon.SendForwardFilled;
247+
case Const.KEY_CHANNEL_BUTTON_OPTION_ICON_HELP_FILLED:
248+
return ChannelButtonIcon.HelpFilled;
249+
case Const.KEY_CHANNEL_BUTTON_OPTION_ICON_CHAT_PROGRESS:
250+
return ChannelButtonIcon.ChatProgress;
251+
case Const.KEY_CHANNEL_BUTTON_OPTION_ICON_CHAT_QUESTION:
252+
return ChannelButtonIcon.ChatQuestion;
253+
case Const.KEY_CHANNEL_BUTTON_OPTION_ICON_CHAT_BUBBLE_ALT:
254+
return ChannelButtonIcon.ChatBubbleAlt;
255+
case Const.KEY_CHANNEL_BUTTON_OPTION_ICON_SMS:
256+
return ChannelButtonIcon.Sms;
257+
case Const.KEY_CHANNEL_BUTTON_OPTION_ICON_COMMENT:
258+
return ChannelButtonIcon.Comment;
259+
case Const.KEY_CHANNEL_BUTTON_OPTION_ICON_SEND_FORWARD:
260+
return ChannelButtonIcon.SendForward;
261+
case Const.KEY_CHANNEL_BUTTON_OPTION_ICON_COMMUNICATION:
262+
return ChannelButtonIcon.Communication;
263+
case Const.KEY_CHANNEL_BUTTON_OPTION_ICON_HEADSET:
264+
return ChannelButtonIcon.Headset;
265+
default:
266+
return ChannelButtonIcon.Channel;
267+
}
268+
}
269+
216270
public static BubbleOption toBubbleOption(ReadableMap bubbleOptionMap) {
217271
if (bubbleOptionMap != null) {
218272
String positionString = Utils.getString(bubbleOptionMap, Const.KEY_POSITION).getValue();

ios/RCTConvert+ChannelIO.h

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,11 +34,50 @@ static NSString * const BOOT_STATUS_REQUIRE_PAYMENT = @"REQUIRE_PAYMENT";
3434
static NSString * const BOOT_STATUS_ACCESS_DENIED = @"ACCESS_DENIED";
3535
static NSString * const BOOT_STATUS_UNKNOWN_ERROR = @"UNKNOWN_ERROR";
3636

37+
// ChannelButtonOptionIcon
38+
static NSString * const KEY_CHANNEL_BUTTON_OPTION_ICON_CHANNEL = @"channel";
39+
static NSString * const KEY_CHANNEL_BUTTON_OPTION_ICON_CHAT_BUBBLE_FILLED = @"chatBubbleFilled";
40+
static NSString * const KEY_CHANNEL_BUTTON_OPTION_ICON_CHAT_PROGRESS_FILLED = @"chatProgressFilled";
41+
static NSString * const KEY_CHANNEL_BUTTON_OPTION_ICON_CHAT_QUESTION_FILLED = @"chatQuestionFilled";
42+
static NSString * const KEY_CHANNEL_BUTTON_OPTION_ICON_CHAT_LIGHTNING_FILLED = @"chatLightningFilled";
43+
static NSString * const KEY_CHANNEL_BUTTON_OPTION_ICON_CHAT_BUBBLE_ALT_FILLED = @"chatBubbleAltFilled";
44+
static NSString * const KEY_CHANNEL_BUTTON_OPTION_ICON_SMS_FILLED = @"smsFilled";
45+
static NSString * const KEY_CHANNEL_BUTTON_OPTION_ICON_COMMENT_FILLED = @"commentFilled";
46+
static NSString * const KEY_CHANNEL_BUTTON_OPTION_ICON_SEND_FORWARD_FILLED = @"sendForwardFilled";
47+
static NSString * const KEY_CHANNEL_BUTTON_OPTION_ICON_HELP_FILLED = @"helpFilled";
48+
static NSString * const KEY_CHANNEL_BUTTON_OPTION_ICON_CHAT_PROGRESS = @"chatProgress";
49+
static NSString * const KEY_CHANNEL_BUTTON_OPTION_ICON_CHAT_QUESTION = @"chatQuestion";
50+
static NSString * const KEY_CHANNEL_BUTTON_OPTION_ICON_CHAT_BUBBLE_ALT = @"chatBubbleAlt";
51+
static NSString * const KEY_CHANNEL_BUTTON_OPTION_ICON_SMS = @"sms";
52+
static NSString * const KEY_CHANNEL_BUTTON_OPTION_ICON_COMMENT = @"comment";
53+
static NSString * const KEY_CHANNEL_BUTTON_OPTION_ICON_SEND_FORWARD = @"sendForward";
54+
static NSString * const KEY_CHANNEL_BUTTON_OPTION_ICON_COMMUNICATION = @"communication";
55+
static NSString * const KEY_CHANNEL_BUTTON_OPTION_ICON_HEADSET = @"headset";
56+
3757
// ChannelButtonOptionPosition
3858
static NSString * const KEY_CHANNEL_BUTTON_OPTION_POSITION_RIGHT = @"right";
3959
static NSString * const KEY_CHANNEL_BUTTON_OPTION_POSITION_LEFT = @"left";
4060

4161
// ChannelButtonOption
62+
static NSString * const CHANNEL_BUTTON_OPTION_ICON = @"icon";
63+
static NSString * const CHANNEL_BUTTON_OPTION_ICON_CHANNEL = @"channel";
64+
static NSString * const CHANNEL_BUTTON_OPTION_ICON_CHAT_BUBBLE_FILLED = @"chatBubbleFilled";
65+
static NSString * const CHANNEL_BUTTON_OPTION_ICON_CHAT_PROGRESS_FILLED = @"chatProgressFilled";
66+
static NSString * const CHANNEL_BUTTON_OPTION_ICON_CHAT_QUESTION_FILLED = @"chatQuestionFilled";
67+
static NSString * const CHANNEL_BUTTON_OPTION_ICON_CHAT_LIGHTNING_FILLED = @"chatLightningFilled";
68+
static NSString * const CHANNEL_BUTTON_OPTION_ICON_CHAT_BUBBLE_ALT_FILLED = @"chatBubbleAltFilled";
69+
static NSString * const CHANNEL_BUTTON_OPTION_ICON_SMS_FILLED = @"smsFilled";
70+
static NSString * const CHANNEL_BUTTON_OPTION_ICON_COMMENT_FILLED = @"commentFilled";
71+
static NSString * const CHANNEL_BUTTON_OPTION_ICON_SEND_FORWARD_FILLED = @"sendForwardFilled";
72+
static NSString * const CHANNEL_BUTTON_OPTION_ICON_HELP_FILLED = @"helpFilled";
73+
static NSString * const CHANNEL_BUTTON_OPTION_ICON_CHAT_PROGRESS = @"chatProgress";
74+
static NSString * const CHANNEL_BUTTON_OPTION_ICON_CHAT_QUESTION = @"chatQuestion";
75+
static NSString * const CHANNEL_BUTTON_OPTION_ICON_CHAT_BUBBLE_ALT = @"chatBubbleAlt";
76+
static NSString * const CHANNEL_BUTTON_OPTION_ICON_SMS = @"sms";
77+
static NSString * const CHANNEL_BUTTON_OPTION_ICON_COMMENT = @"comment";
78+
static NSString * const CHANNEL_BUTTON_OPTION_ICON_SEND_FORWARD = @"sendForward";
79+
static NSString * const CHANNEL_BUTTON_OPTION_ICON_COMMUNICATION = @"communication";
80+
static NSString * const CHANNEL_BUTTON_OPTION_ICON_HEADSET = @"headset";
4281
static NSString * const CHANNEL_BUTTON_OPTION_POSITION = @"position";
4382
static NSString * const CHANNEL_BUTTON_OPTION_POSITION_RIGHT = @"right";
4483
static NSString * const CHANNEL_BUTTON_OPTION_POSITION_LEFT = @"left";

ios/RCTConvert+ChannelIO.m

Lines changed: 63 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,31 @@ @implementation RCTConvert (ChannelIOEnums)
3636
integerValue
3737
)
3838

39+
RCT_ENUM_CONVERTER(
40+
ChannelButtonIcon,
41+
(@{CHANNEL_BUTTON_OPTION_ICON_CHANNEL: @(ChannelButtonIconChannel),
42+
CHANNEL_BUTTON_OPTION_ICON_CHAT_BUBBLE_FILLED: @(ChannelButtonIconChatBubbleFilled),
43+
CHANNEL_BUTTON_OPTION_ICON_CHAT_PROGRESS_FILLED: @(ChannelButtonIconChatProgressFilled),
44+
CHANNEL_BUTTON_OPTION_ICON_CHAT_QUESTION_FILLED: @(ChannelButtonIconChatQuestionFilled),
45+
CHANNEL_BUTTON_OPTION_ICON_CHAT_LIGHTNING_FILLED: @(ChannelButtonIconChatLightningFilled),
46+
CHANNEL_BUTTON_OPTION_ICON_CHAT_BUBBLE_ALT_FILLED: @(ChannelButtonIconChatBubbleAltFilled),
47+
CHANNEL_BUTTON_OPTION_ICON_SMS_FILLED: @(ChannelButtonIconSmsFilled),
48+
CHANNEL_BUTTON_OPTION_ICON_COMMENT_FILLED: @(ChannelButtonIconCommentFilled),
49+
CHANNEL_BUTTON_OPTION_ICON_SEND_FORWARD_FILLED: @(ChannelButtonIconSendForwardFilled),
50+
CHANNEL_BUTTON_OPTION_ICON_HELP_FILLED: @(ChannelButtonIconHelpFilled),
51+
CHANNEL_BUTTON_OPTION_ICON_CHAT_PROGRESS: @(ChannelButtonIconChatProgress),
52+
CHANNEL_BUTTON_OPTION_ICON_CHAT_QUESTION: @(ChannelButtonIconChatQuestion),
53+
CHANNEL_BUTTON_OPTION_ICON_CHAT_BUBBLE_ALT: @(ChannelButtonIconChatBubbleAlt),
54+
CHANNEL_BUTTON_OPTION_ICON_SMS: @(ChannelButtonIconSms),
55+
CHANNEL_BUTTON_OPTION_ICON_COMMENT: @(ChannelButtonIconComment),
56+
CHANNEL_BUTTON_OPTION_ICON_SEND_FORWARD: @(ChannelButtonIconSendForward),
57+
CHANNEL_BUTTON_OPTION_ICON_COMMUNICATION: @(ChannelButtonIconCommunication),
58+
CHANNEL_BUTTON_OPTION_ICON_HEADSET: @(ChannelButtonIconHeadset)
59+
}),
60+
ChannelButtonIconChannel,
61+
integerValue
62+
)
63+
3964
RCT_ENUM_CONVERTER(
4065
ChannelButtonPosition,
4166
(@{CHANNEL_BUTTON_OPTION_POSITION_RIGHT: @(ChannelButtonPositionRight),
@@ -162,6 +187,44 @@ + (ChannelButtonOption *)channelButtonOption:(id)json {
162187

163188
option.xMargin = [RCTConvert float:json[CHANNEL_BUTTON_OPTION_X_MARGIN]];
164189
option.yMargin = [RCTConvert float:json[CHANNEL_BUTTON_OPTION_Y_MARGIN]];
190+
191+
NSString *icon = [RCTConvert NSString:json[CHANNEL_BUTTON_OPTION_ICON]];
192+
if ([icon isEqualToString:CHANNEL_BUTTON_OPTION_ICON_CHAT_BUBBLE_FILLED]) {
193+
option.icon = ChannelButtonIconChatBubbleFilled;
194+
} else if ([icon isEqualToString:CHANNEL_BUTTON_OPTION_ICON_CHAT_QUESTION_FILLED]) {
195+
option.icon = ChannelButtonIconChatQuestionFilled;
196+
} else if ([icon isEqualToString:CHANNEL_BUTTON_OPTION_ICON_CHAT_LIGHTNING_FILLED]) {
197+
option.icon = ChannelButtonIconChatLightningFilled;
198+
} else if ([icon isEqualToString:CHANNEL_BUTTON_OPTION_ICON_CHAT_BUBBLE_ALT_FILLED]) {
199+
option.icon = ChannelButtonIconChatBubbleAltFilled;
200+
} else if ([icon isEqualToString:CHANNEL_BUTTON_OPTION_ICON_SMS_FILLED]) {
201+
option.icon = ChannelButtonIconSmsFilled;
202+
} else if ([icon isEqualToString:CHANNEL_BUTTON_OPTION_ICON_COMMENT_FILLED]) {
203+
option.icon = ChannelButtonIconCommentFilled;
204+
} else if ([icon isEqualToString:CHANNEL_BUTTON_OPTION_ICON_SEND_FORWARD_FILLED]) {
205+
option.icon = ChannelButtonIconSendForwardFilled;
206+
} else if ([icon isEqualToString:CHANNEL_BUTTON_OPTION_ICON_HELP_FILLED]) {
207+
option.icon = ChannelButtonIconHelpFilled;
208+
} else if ([icon isEqualToString:CHANNEL_BUTTON_OPTION_ICON_CHAT_PROGRESS]) {
209+
option.icon = ChannelButtonIconChatProgress;
210+
} else if ([icon isEqualToString:CHANNEL_BUTTON_OPTION_ICON_CHAT_QUESTION]) {
211+
option.icon = ChannelButtonIconChatQuestion;
212+
} else if ([icon isEqualToString:CHANNEL_BUTTON_OPTION_ICON_CHAT_BUBBLE_ALT]) {
213+
option.icon = ChannelButtonIconChatBubbleAlt;
214+
} else if ([icon isEqualToString:CHANNEL_BUTTON_OPTION_ICON_SMS]) {
215+
option.icon = ChannelButtonIconSms;
216+
} else if ([icon isEqualToString:CHANNEL_BUTTON_OPTION_ICON_COMMENT]) {
217+
option.icon = ChannelButtonIconComment;
218+
} else if ([icon isEqualToString:CHANNEL_BUTTON_OPTION_ICON_SEND_FORWARD]) {
219+
option.icon = ChannelButtonIconSendForward;
220+
} else if ([icon isEqualToString:CHANNEL_BUTTON_OPTION_ICON_COMMUNICATION]) {
221+
option.icon = ChannelButtonIconCommunication;
222+
} else if ([icon isEqualToString:CHANNEL_BUTTON_OPTION_ICON_HEADSET]) {
223+
option.icon = ChannelButtonIconHeadset;
224+
} else {
225+
option.icon = ChannelButtonIconChannel;
226+
}
227+
165228
NSString *position = [RCTConvert NSString:json[CHANNEL_BUTTON_OPTION_POSITION]];
166229
if ([position isEqualToString:CHANNEL_BUTTON_OPTION_POSITION_LEFT]) {
167230
option.position = ChannelButtonPositionLeft;

ios/RNChannelIO.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,9 @@ static NSString * const KEY_LANGUAGE_DEVICE = @"device";
6060
// error
6161
static NSString * const ERROR_UNKNOWN = @"UNKNOWN_ERROR";
6262

63+
// ChannelButtonIcon
64+
static NSString * const CHANNEL_BUTTON_ICON = @"ChannelButtonIcon";
65+
6366
// ChannelButtonPosition
6467
static NSString * const CHANNEL_BUTTON_POSITION = @"ChannelButtonPosition";
6568

ios/RNChannelIO.m

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,26 @@ - (NSDictionary *)constantsToExport {
8282
KEY_BOOT_STATUS_ACCESS_DENIED: @(BootStatusAccessDenied),
8383
KEY_BOOT_STATUS_UNKNOWN_ERROR: @(BootStatusUnknown)
8484
},
85+
CHANNEL_BUTTON_ICON: @{
86+
KEY_CHANNEL_BUTTON_OPTION_ICON_CHANNEL: @(ChannelButtonIconChannel),
87+
KEY_CHANNEL_BUTTON_OPTION_ICON_CHAT_BUBBLE_FILLED: @(ChannelButtonIconChatBubbleFilled),
88+
KEY_CHANNEL_BUTTON_OPTION_ICON_CHAT_PROGRESS_FILLED: @(ChannelButtonIconChatProgressFilled),
89+
KEY_CHANNEL_BUTTON_OPTION_ICON_CHAT_QUESTION_FILLED: @(ChannelButtonIconChatQuestionFilled),
90+
KEY_CHANNEL_BUTTON_OPTION_ICON_CHAT_LIGHTNING_FILLED: @(ChannelButtonIconChatLightningFilled),
91+
KEY_CHANNEL_BUTTON_OPTION_ICON_CHAT_BUBBLE_ALT_FILLED: @(ChannelButtonIconChatBubbleAltFilled),
92+
KEY_CHANNEL_BUTTON_OPTION_ICON_SMS_FILLED: @(ChannelButtonIconSmsFilled),
93+
KEY_CHANNEL_BUTTON_OPTION_ICON_COMMENT_FILLED: @(ChannelButtonIconCommentFilled),
94+
KEY_CHANNEL_BUTTON_OPTION_ICON_SEND_FORWARD_FILLED: @(ChannelButtonIconSendForwardFilled),
95+
KEY_CHANNEL_BUTTON_OPTION_ICON_HELP_FILLED: @(ChannelButtonIconHelpFilled),
96+
KEY_CHANNEL_BUTTON_OPTION_ICON_CHAT_PROGRESS: @(ChannelButtonIconChatProgress),
97+
KEY_CHANNEL_BUTTON_OPTION_ICON_CHAT_QUESTION: @(ChannelButtonIconChatQuestion),
98+
KEY_CHANNEL_BUTTON_OPTION_ICON_CHAT_BUBBLE_ALT: @(ChannelButtonIconChatBubbleAlt),
99+
KEY_CHANNEL_BUTTON_OPTION_ICON_SMS: @(ChannelButtonIconSms),
100+
KEY_CHANNEL_BUTTON_OPTION_ICON_COMMENT: @(ChannelButtonIconComment),
101+
KEY_CHANNEL_BUTTON_OPTION_ICON_SEND_FORWARD: @(ChannelButtonIconSendForward),
102+
KEY_CHANNEL_BUTTON_OPTION_ICON_COMMUNICATION: @(ChannelButtonIconCommunication),
103+
KEY_CHANNEL_BUTTON_OPTION_ICON_HEADSET: @(ChannelButtonIconHeadset)
104+
},
85105
CHANNEL_BUTTON_POSITION: @{
86106
KEY_CHANNEL_BUTTON_OPTION_POSITION_RIGHT: @(ChannelButtonPositionRight),
87107
KEY_CHANNEL_BUTTON_OPTION_POSITION_LEFT: @(ChannelButtonPositionLeft)

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "react-native-channel-plugin",
3-
"version": "0.8.0",
3+
"version": "0.8.1",
44
"description": "react native module for channel io",
55
"main": "index.js",
66
"scripts": {

0 commit comments

Comments
 (0)