We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 132fb2b commit 3261013Copy full SHA for 3261013
android/src/io/jchat/android/Constant.java
@@ -1,7 +1,7 @@
1
package io.jchat.android;
2
3
public class Constant {
4
-
+ static final String ENABLE = "enable";
5
public static final String USERNAME = "username";
6
public static final String PASSWORD = "password";
7
public static final String OLD_PWD = "oldPwd";
android/src/io/jchat/android/JMessageModule.java
@@ -137,6 +137,16 @@ public void init(int mode) {
137
138
}
139
140
+ @ReactMethod
141
+ public void setDebugMode(ReadableMap map) {
142
+ try {
143
+ boolean enable = map.getBoolean(Constant.ENABLE);
144
+ JMessageClient.setDebugMode(enable);
145
+ } catch (Exception e) {
146
+ e.printStackTrace();
147
+ }
148
149
+
150
/**
151
* 启动应用时判断登录状态
152
*
0 commit comments