fix: add title to navigator route

This commit is contained in:
thecodrr
2020-04-21 13:13:19 +05:00
parent ae45abdb96
commit a803eeaf08

View File

@@ -11,8 +11,8 @@ export function createRoute(key, component, props = {}, params = {}) {
};
}
export function createNavigatorRoute(key, icon, navigator) {
return createRoute(key, NavigationContainer, { icon }, { navigator });
export function createNavigatorRoute(key, icon, title, navigator) {
return createRoute(key, NavigationContainer, { icon, title }, { navigator });
}
export function createNormalRoute(key, component, icon, props = {}) {