Вы не можете выбрать более 25 тем Темы должны начинаться с буквы или цифры, могут содержать дефисы(-) и должны содержать не более 35 символов.

SettingsNavigationContainerRef.js 709B

1234567891011121314151617181920212223
  1. import React from 'react';
  2. export const settingsNavigationContainerRef = React.createRef();
  3. /**
  4. * User defined navigation action included inside the reference to the container.
  5. *
  6. * @param {string} name - Destination name of the route that has been defined somewhere.
  7. * @param {Object} params - Params to pass to the destination route.
  8. * @returns {Function}
  9. */
  10. export function navigate(name: string, params: Object) {
  11. return settingsNavigationContainerRef.current?.navigate(name, params);
  12. }
  13. /**
  14. * User defined navigation action included inside the reference to the container.
  15. *
  16. * @returns {Function}
  17. */
  18. export function goBack() {
  19. return settingsNavigationContainerRef.current?.goBack();
  20. }