feat(welcome/native): settings updates (#11830)

feat(settings/native): feature updates
This commit is contained in:
Calinteodor
2022-07-28 10:28:29 +03:00
committed by GitHub
parent e139c6d32d
commit 5ec6581d2e
34 changed files with 515 additions and 580 deletions

View File

@@ -0,0 +1,23 @@
import React from 'react';
export const settingsNavigationContainerRef = React.createRef();
/**
* User defined navigation action included inside the reference to the container.
*
* @param {string} name - Destination name of the route that has been defined somewhere.
* @param {Object} params - Params to pass to the destination route.
* @returns {Function}
*/
export function navigate(name: string, params: Object) {
return settingsNavigationContainerRef.current?.navigate(name, params);
}
/**
* User defined navigation action included inside the reference to the container.
*
* @returns {Function}
*/
export function goBack() {
return settingsNavigationContainerRef.current?.goBack();
}