Skip to content

Commit dbc5990

Browse files
committed
Remove Animated API usage from Medium text component for simplification
1 parent 3a9f430 commit dbc5990

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

src/utils/fonts.tsx

+2-4
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
11
import { StyleSheet, Text, type TextProps } from 'react-native'
2-
import Animated from 'react-native-reanimated'
3-
import { layout } from './utils'
42

53
export const REGULAR = {
64
fontFamily: 'JosefinSans-Regular',
@@ -20,9 +18,9 @@ export const LIGHT = {
2018

2119
export function Medium({ children, style, ...props }: TextProps) {
2220
return (
23-
<Animated.Text style={[MEDIUM, style]} {...props} layout={layout}>
21+
<Text style={[MEDIUM, style]} {...props}>
2422
{children}
25-
</Animated.Text>
23+
</Text>
2624
)
2725
}
2826

0 commit comments

Comments
 (0)