react-native-navigation的迁移库

options-backButton.mdx 1.0KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. ---
  2. id: backButton-options
  3. title: Back Button Options
  4. sidebar_label: Back Button
  5. ---
  6. Controls the back button styling.
  7. ```js
  8. const options = {
  9. topBar: {
  10. backButton: {}
  11. }
  12. }
  13. ```
  14. ### `color`
  15. Change the back button color. This will change the text color as well.
  16. | Type | Required | Platform |
  17. | ----- | -------- | -------- |
  18. | color | No | Both |
  19. ### `icon`
  20. Change the default back button icon.
  21. | Type | Required | Platform |
  22. | ------ | -------- | -------- |
  23. | number | No | Both |
  24. ### `showTitle`
  25. Show or hide the text displayed next to the back button.
  26. | Type | Required | Platform |
  27. | ------ | -------- | -------- |
  28. | number | No | iOS |
  29. ### `title`
  30. Change the text displayed next to the title. Usually the back button shows the title of the previous screen.
  31. | Type | Required | Platform |
  32. | ------ | -------- | -------- |
  33. | string | No | iOS |
  34. ### `visible`
  35. Hide or show the back button.
  36. | Type | Required | Platform |
  37. | ------- | -------- | -------- |
  38. | boolean | No | Both |