react-native-navigation的迁移库

options-statusBar.mdx 825B

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. ---
  2. id: options-statusBar
  3. title: Status Bar Options
  4. sidebar_label: Status Bar
  5. ---
  6. ```js
  7. const options = {
  8. statusBar: {}
  9. };
  10. ```
  11. ### `visible`
  12. Set the status bar visibility.
  13. | Type | Required | Platform |
  14. | ------- | -------- | -------- |
  15. | boolean | No | Both |
  16. ### `style`
  17. Set the text color of the status bar.
  18. | Type | Required | Platform | Default |
  19. | --------------------- | -------- | -------- | ------- |
  20. | enum('light', 'dark') | No | Both | 'light' |
  21. ### `backgroundColor`
  22. Set the background color of the status bar.
  23. | Type | Required | Platform |
  24. | ----- | -------- | -------- |
  25. | Color | No | Android |
  26. ### `drawBehind`
  27. Draw screen behind the status bar.
  28. | Type | Required | Platform |
  29. | ----- | -------- | -------- |
  30. | boolean | No | Android |