|
|
@@ -12,6 +12,7 @@ import com.reactnativenavigation.parse.params.Number;
|
|
12
|
12
|
import com.reactnativenavigation.parse.params.Text;
|
|
13
|
13
|
import com.reactnativenavigation.parse.parsers.BoolParser;
|
|
14
|
14
|
import com.reactnativenavigation.parse.parsers.ColorParser;
|
|
|
15
|
+import com.reactnativenavigation.parse.parsers.IconParser;
|
|
15
|
16
|
import com.reactnativenavigation.parse.parsers.NumberParser;
|
|
16
|
17
|
import com.reactnativenavigation.parse.parsers.TextParser;
|
|
17
|
18
|
import com.reactnativenavigation.utils.TypefaceLoader;
|
|
|
@@ -29,8 +30,8 @@ public class BottomTabOptions {
|
|
29
|
30
|
options.text = TextParser.parse(json, "text");
|
|
30
|
31
|
options.textColor = ColorParser.parse(json, "textColor");
|
|
31
|
32
|
options.selectedTextColor = ColorParser.parse(json, "selectedTextColor");
|
|
32
|
|
- if (json.has("icon")) options.icon = TextParser.parse(json.optJSONObject("icon"), "uri");
|
|
33
|
|
- if (json.has("selectedIcon")) options.selectedIcon = TextParser.parse(json.optJSONObject("selectedIcon"), "uri");
|
|
|
33
|
+ options.icon = IconParser.parse(json, "icon");
|
|
|
34
|
+ options.selectedIcon = IconParser.parse(json, "selectedIcon");
|
|
34
|
35
|
options.iconColor = ColorParser.parse(json, "iconColor");
|
|
35
|
36
|
options.selectedIconColor = ColorParser.parse(json, "selectedIconColor");
|
|
36
|
37
|
options.badge = TextParser.parse(json, "badge");
|