Skip to content

Commit ff716f6

Browse files
committed
Update Readme
1 parent 3b17249 commit ff716f6

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

README.md

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,12 +47,15 @@ Declare the dependencies in the module-level `build.gradle` file 🍀 [![](https
4747
### How to use 🚀
4848

4949
Create list of bottom navigation Item with `SmoothAnimationBottomBarScreens`
50+
5051
```kotlin
52+
import javax.swing.Icon
53+
5154
val bottomNavigationItems = listOf(
5255
SmoothAnimationBottomBarScreens(
5356
Screens.HomeScreen.route,
5457
stringResource(id = R.string.home),
55-
R.drawable.baseline_home_24
58+
Icons.Default.Home
5659
), SmoothAnimationBottomBarScreens(
5760
Screens.TrendingScreen.route,
5861
stringResource(id = R.string.trending),
@@ -70,7 +73,7 @@ val currentIndex = rememberSaveable {
7073
}
7174

7275
Scaffold(bottomBar = {
73-
SmoothAnimationBottomBar(navController,
76+
SmoothAnimationBottomBar(navController,
7477
bottomNavigationItems,
7578
initialIndex = currentIndex,
7679
bottomBarProperties = BottomBarProperties(),

0 commit comments

Comments
 (0)