Check out example codes for "action bar not showing in google maps activity". It will help you in understanding the concepts better.

Code Example 1

Extending AppCompatActivity instead of FragmentActivity helped me.

Learn ReactJs, React Native from akashmittal.com