glud-component
Advanced tools
Comparing version 1.10.0 to 1.10.1
@@ -187,2 +187,11 @@ 'use strict'; | ||
var _MobileNavigation = require('./MobileNavigation'); | ||
Object.defineProperty(exports, 'MobileNavigation', { | ||
enumerable: true, | ||
get: function get() { | ||
return _interopRequireDefault(_MobileNavigation).default; | ||
} | ||
}); | ||
var _MobileStyle = require('./MobileStyle'); | ||
@@ -189,0 +198,0 @@ |
@@ -48,2 +48,4 @@ 'use strict'; | ||
subTitle = screenOptions.subTitle, | ||
rightIcon = screenOptions.rightIcon, | ||
rightAction = screenOptions.rightAction, | ||
headerRenderer = screenOptions.headerRenderer; | ||
@@ -61,2 +63,11 @@ | ||
var handleClickRightAction = function handleClickRightAction() { | ||
if (rightAction && typeof rightAction !== 'function') { | ||
console.error('rightAction should be a function'); | ||
return null; | ||
} | ||
rightAction(); | ||
}; | ||
var header = function header() { | ||
@@ -74,3 +85,5 @@ if (headerRenderer) return headerRenderer(screenOptions); | ||
return navigation.goBack(); | ||
} | ||
}, | ||
rightIcon: rightIcon, | ||
onClickRight: handleClickRightAction | ||
}); | ||
@@ -77,0 +90,0 @@ }; |
{ | ||
"name": "glud-component", | ||
"version": "1.10.0", | ||
"version": "1.10.1", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "repository": { |
904139
8274