Search code examples
react-nativeandroid-actionbarexpo

How to make an ActionBar on React Native?


I am trying to create an action Bar in the top of my app, which I created with Expo. Previously, I only worked with Android Studio, which created the bar automatically.

I attempted using the Toolbar component, which did not show up in the test run

<ToolbarAndroid
  title="Login"
  actions={[{title: 'Settings', show: 'always'}]}/>

By Action Bar, I mean the bar circled in the image below. I am pretty sure the name is Action bar, but I might be wrong.

enter image description here


Solution

  • This issue has been addressed here.

    You need to specify both the width and height of the ToolbarAndroid.