Skip to content

Commit

Permalink
Added badge and font props to tab bar on android
Browse files Browse the repository at this point in the history
Forgot ios props have to be implemented in android view manager on Fabric. Also removed test id that made it in accidentally in copy paste of #613
  • Loading branch information
grahammendick committed Jul 22, 2022
1 parent 18c2b2a commit 79d904f
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 1 deletion.
1 change: 0 additions & 1 deletion NavigationReactNative/src/TabBarNativeComponent.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ type NativeProps = $ReadOnly<{|
fontWeight: string,
fontStyle: string,
fontSize?: WithDefault<Float, -1>,
testID: string,
mostRecentEventCount: Int32,
onTabSelected: DirectEventHandler<$ReadOnly<{|
tab: Int32,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,11 @@ public void setSelectedTintColor(TabBarView view, @Nullable Integer value) {
public void setUnselectedTintColor(TabBarView view, @Nullable Integer value) {
}

@Override
public void setBadgeColor(TabBarView view, @Nullable Integer value) {

}

@ReactProp(name = "mostRecentEventCount")
public void setMostRecentEventCount(TabBarView view, int mostRecentEventCount) {
view.mostRecentEventCount = mostRecentEventCount;
Expand All @@ -76,6 +81,26 @@ public void setScrollsToTop(TabBarView view, boolean scrollsToTop) {
view.scrollsToTop = scrollsToTop;
}

@Override
public void setFontFamily(TabBarView view, @Nullable String value) {

}

@Override
public void setFontWeight(TabBarView view, @Nullable String value) {

}

@Override
public void setFontStyle(TabBarView view, @Nullable String value) {

}

@Override
public void setFontSize(TabBarView view, float value) {

}

@Override
public int getChildCount(TabBarView parent) {
return parent.tabFragments.size();
Expand Down

0 comments on commit 79d904f

Please sign in to comment.