-
-
Notifications
You must be signed in to change notification settings - Fork 698
Expand file tree
/
Copy pathRNSBottomTabsManagerDelegate.java
More file actions
94 lines (91 loc) · 4.21 KB
/
Copy pathRNSBottomTabsManagerDelegate.java
File metadata and controls
94 lines (91 loc) · 4.21 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
/**
* This code was generated by [react-native-codegen](https://www.npmjs.com/package/react-native-codegen).
*
* Do not edit this file as changes may cause incorrect behavior and will be lost
* once the code is regenerated.
*
* @generated by codegen project: GeneratePropsJavaDelegate.js
*/
package com.facebook.react.viewmanagers;
import android.view.View;
import androidx.annotation.Nullable;
import com.facebook.react.bridge.ColorPropConverter;
import com.facebook.react.uimanager.BaseViewManager;
import com.facebook.react.uimanager.BaseViewManagerDelegate;
import com.facebook.react.uimanager.LayoutShadowNode;
@SuppressWarnings("deprecation")
public class RNSBottomTabsManagerDelegate<T extends View, U extends BaseViewManager<T, ? extends LayoutShadowNode> & RNSBottomTabsManagerInterface<T>> extends BaseViewManagerDelegate<T, U> {
public RNSBottomTabsManagerDelegate(U viewManager) {
super(viewManager);
}
@Override
public void setProperty(T view, String propName, @Nullable Object value) {
switch (propName) {
case "tabBarHidden":
mViewManager.setTabBarHidden(view, value == null ? false : (boolean) value);
break;
case "nativeContainerBackgroundColor":
mViewManager.setNativeContainerBackgroundColor(view, ColorPropConverter.getColor(value, view.getContext()));
break;
case "directionMode":
mViewManager.setDirectionMode(view, (String) value);
break;
case "tabBarBackgroundColor":
mViewManager.setTabBarBackgroundColor(view, ColorPropConverter.getColor(value, view.getContext()));
break;
case "tabBarItemTitleFontFamily":
mViewManager.setTabBarItemTitleFontFamily(view, value == null ? null : (String) value);
break;
case "tabBarItemTitleFontSize":
mViewManager.setTabBarItemTitleFontSize(view, value == null ? 0f : ((Double) value).floatValue());
break;
case "tabBarItemTitleFontSizeActive":
mViewManager.setTabBarItemTitleFontSizeActive(view, value == null ? 0f : ((Double) value).floatValue());
break;
case "tabBarItemTitleFontWeight":
mViewManager.setTabBarItemTitleFontWeight(view, value == null ? null : (String) value);
break;
case "tabBarItemTitleFontStyle":
mViewManager.setTabBarItemTitleFontStyle(view, value == null ? null : (String) value);
break;
case "tabBarItemTitleFontColor":
mViewManager.setTabBarItemTitleFontColor(view, ColorPropConverter.getColor(value, view.getContext()));
break;
case "tabBarItemTitleFontColorActive":
mViewManager.setTabBarItemTitleFontColorActive(view, ColorPropConverter.getColor(value, view.getContext()));
break;
case "tabBarItemIconColor":
mViewManager.setTabBarItemIconColor(view, ColorPropConverter.getColor(value, view.getContext()));
break;
case "tabBarItemIconColorActive":
mViewManager.setTabBarItemIconColorActive(view, ColorPropConverter.getColor(value, view.getContext()));
break;
case "tabBarItemActiveIndicatorColor":
mViewManager.setTabBarItemActiveIndicatorColor(view, ColorPropConverter.getColor(value, view.getContext()));
break;
case "tabBarItemActiveIndicatorEnabled":
mViewManager.setTabBarItemActiveIndicatorEnabled(view, value == null ? true : (boolean) value);
break;
case "tabBarItemRippleColor":
mViewManager.setTabBarItemRippleColor(view, ColorPropConverter.getColor(value, view.getContext()));
break;
case "tabBarItemLabelVisibilityMode":
mViewManager.setTabBarItemLabelVisibilityMode(view, (String) value);
break;
case "tabBarTintColor":
mViewManager.setTabBarTintColor(view, ColorPropConverter.getColor(value, view.getContext()));
break;
case "tabBarMinimizeBehavior":
mViewManager.setTabBarMinimizeBehavior(view, (String) value);
break;
case "tabBarControllerMode":
mViewManager.setTabBarControllerMode(view, (String) value);
break;
case "controlNavigationStateInJS":
mViewManager.setControlNavigationStateInJS(view, value == null ? false : (boolean) value);
break;
default:
super.setProperty(view, propName, value);
}
}
}