fix: clamp interpolated styles

This commit is contained in:
Satyajit Sahoo
2020-01-09 01:27:19 +01:00
parent 32ffaac647
commit 67798af869
3 changed files with 89 additions and 6 deletions

View File

@@ -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<RootDrawerParamList>;
}) => (
<Stack.Navigator>
<Stack.Navigator
screenOptions={{
headerStyleInterpolator: HeaderStyleInterpolators.forUIKit,
}}
>
<Stack.Screen
name="Home"
options={{