react-native-navigation的迁移库

options-navigationBar.mdx 987B

1234567891011121314151617181920212223242526272829303132333435363738
  1. ---
  2. id: options-navigationBar
  3. title: Navigation Bar Options
  4. sidebar_label: Navigation Bar
  5. ---
  6. import useBaseUrl from '@docusaurus/useBaseUrl';
  7. The Navigation Bar is the area at the bottom of the screen containing Android's three navigation buttons: Back, Home and Recents.
  8. An example of a dark navigation bar:
  9. <img width="30%" src={useBaseUrl('/img/navBar_black.png')} />
  10. <br></br>
  11. <br></br>
  12. ```js
  13. const options = {
  14. navigationBar: {}
  15. };
  16. ```
  17. ### `visible`
  18. Set the navigation bar visibility.
  19. | Type | Required | Platform |
  20. | ------- | -------- | -------- |
  21. | boolean | No | Android |
  22. ### `backgroundColor`
  23. Set the navigation bar color. When a light background color is used, the color of the navigation bar icons will adapt to a dark color.
  24. <img width="30%" src={useBaseUrl('/img/navBar_white.png')} />
  25. | Type | Required | Platform | Default |
  26. | --------------------- | -------- | -------- | ------- |
  27. | Color | No | Android | 'black' |