Skip to content

Commit

Permalink
发布 2.5.0
Browse files Browse the repository at this point in the history
  • Loading branch information
listenzz committed Nov 4, 2021
1 parent 2204aeb commit 699477b
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 2 deletions.
10 changes: 9 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,12 @@
## 2.4.3 (2021-10-08)
## 2.5.0 (2021-11-04)

- 添加 `Garden#setTabItem`,可以动态修改 tab 图标,标题,徽章。

- 弃用 `Garden#setTabIcon`

- 弃用 `Garden#setTabBadge`

## 2.4.3 (2021-11-03)

### iOS specific

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "hybrid-navigation",
"description": "React Native Navigation that supports seamless navigation between Native and React.",
"version": "2.4.3",
"version": "2.5.0",
"keywords": [
"react-native",
"navigation",
Expand Down
2 changes: 2 additions & 0 deletions src/Garden.ts
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,7 @@ export class Garden {
}

setTabIcon(icon: TabIcon | TabIcon[]) {
console.warn(`Garden#setTabIcon is deprecated, use Garden#setTabItem instead.`)
if (!Array.isArray(icon)) {
icon = [icon]
}
Expand All @@ -144,6 +145,7 @@ export class Garden {
}

setTabBadge(badge: TabBadge | TabBadge[]) {
console.warn(`Garden#setTabBadge is deprecated, use Garden#setTabItem instead.`)
if (!Array.isArray(badge)) {
badge = [badge]
}
Expand Down

0 comments on commit 699477b

Please sign in to comment.