feat(stack): use Animated.View for header background (#106)

This commit is contained in:
Dulmandakh
2019-09-21 23:54:21 +08:00
committed by Satyajit Sahoo
parent d09c9ae643
commit 089390ce87

View File

@@ -1,8 +1,9 @@
import * as React from 'react';
import { View, StyleSheet, Platform, ViewProps } from 'react-native';
import { StyleSheet, Platform, ViewProps } from 'react-native';
import Animated from 'react-native-reanimated';
export default function HeaderBackground({ style, ...rest }: ViewProps) {
return <View style={[styles.container, style]} {...rest} />;
return <Animated.View style={[styles.container, style]} {...rest} />;
}
const styles = StyleSheet.create({