O'Reilly logo

React Native By Example by Richard Kho

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

ToolbarAndroid

On Android, the preferred way to navigate the UI is through its top-placement toolbar. This differs from the iOS experience because rather than having all the available tabs at the bottom of the screen, navigation is hidden inside a drawer that the user taps to expose.

ToolbarAndroid is a React Native, Android-specific component that wraps around the Android SDK's native toolbar widget. Like TabBarIOS, we have access to a react-native-vector-icons-specific version of the component that we render by calling <Icon.ToolbarAndroid />. We will be using the following props when using Icon.ToolbarAndroid in our app:

  • title: This is a string that is displayed at the top of the toolbar showing the name of the app
  • titleColor: This sets ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required