From 67798af869dcbbf323629fc7e7cc9062d1e12c29 Mon Sep 17 00:00:00 2001 From: Satyajit Sahoo Date: Thu, 9 Jan 2020 01:27:19 +0100 Subject: [PATCH] fix: clamp interpolated styles --- example/src/index.tsx | 7 ++- .../CardStyleInterpolators.tsx | 41 +++++++++++++++- .../HeaderStyleInterpolators.tsx | 47 +++++++++++++++++-- 3 files changed, 89 insertions(+), 6 deletions(-) diff --git a/example/src/index.tsx b/example/src/index.tsx index 112d6a45..ce7e0d78 100644 --- a/example/src/index.tsx +++ b/example/src/index.tsx @@ -35,6 +35,7 @@ import { createStackNavigator, Assets as StackAssets, StackNavigationProp, + HeaderStyleInterpolators, } from '@react-navigation/stack'; import LinkingPrefixes from './LinkingPrefixes'; @@ -206,7 +207,11 @@ export default function App() { }: { navigation: DrawerNavigationProp; }) => ( - +