From c86966c150b2615f1b0bc257ca7e605b4d317711 Mon Sep 17 00:00:00 2001 From: Jiajie Zhu Date: Fri, 9 Oct 2015 17:52:19 -0700 Subject: [PATCH] fix breadcrumb icon offset Reviewed By: @fkgozali Differential Revision: D2528804 fb-gh-sync-id: 6ed9e9ce330ecc147c3fb8217c7b1b0986c862fe --- ...orBreadcrumbNavigationBarStyles.android.js | 20 ++++++------------- 1 file changed, 6 insertions(+), 14 deletions(-) diff --git a/Libraries/Components/Navigator/NavigatorBreadcrumbNavigationBarStyles.android.js b/Libraries/Components/Navigator/NavigatorBreadcrumbNavigationBarStyles.android.js index 359e63c32..3ae86f0e7 100644 --- a/Libraries/Components/Navigator/NavigatorBreadcrumbNavigationBarStyles.android.js +++ b/Libraries/Components/Navigator/NavigatorBreadcrumbNavigationBarStyles.android.js @@ -125,18 +125,14 @@ RIGHT[0].Title = merge(FIRST_TITLE_BASE, {opacity: 0}); var buildIndexSceneInterpolator = function(startStyles, endStyles) { return { Crumb: buildStyleInterpolator({ - translateX: { + left: { type: 'linear', - from: 0, - to: endStyles.Crumb.left - startStyles.Crumb.left, + from: startStyles.Crumb.left, + to: endStyles.Crumb.left, min: 0, max: 1, extrapolate: true, }, - left: { - value: startStyles.Crumb.left, - type: 'constant' - }, }), Icon: buildStyleInterpolator({ opacity: { @@ -164,18 +160,14 @@ var buildIndexSceneInterpolator = function(startStyles, endStyles) { min: 0, max: 1, }, - translateX: { + left: { type: 'linear', - from: 0, - to: endStyles.Title.left - startStyles.Title.left, + from: startStyles.Title.left, + to: endStyles.Title.left, min: 0, max: 1, extrapolate: true, }, - left: { - value: startStyles.Title.left, - type: 'constant' - }, }), RightItem: buildStyleInterpolator({ opacity: {