mirror of
https://github.com/zhigang1992/react-navigation.git
synced 2026-03-06 17:34:59 +08:00
Use animatable text component for the header title (#1922)
* Uses animatable text component for the header title * fix: prettier issue
This commit is contained in:
committed by
Adam Miskiewicz
parent
027c6ae5aa
commit
a2fdb6d704
@@ -2,7 +2,7 @@
|
||||
|
||||
import React from 'react';
|
||||
|
||||
import { Platform, StyleSheet, Text } from 'react-native';
|
||||
import { Platform, StyleSheet, Animated } from 'react-native';
|
||||
|
||||
import type { Style } from '../TypeDefinition';
|
||||
|
||||
@@ -12,7 +12,7 @@ type Props = {
|
||||
};
|
||||
|
||||
const HeaderTitle = ({ style, ...rest }: Props) => (
|
||||
<Text
|
||||
<Animated.Text
|
||||
numberOfLines={1}
|
||||
{...rest}
|
||||
style={[styles.title, style]}
|
||||
|
||||
Reference in New Issue
Block a user