mirror of
https://github.com/movie-web/native-app.git
synced 2025-09-13 12:13:25 +00:00
45 lines
1.2 KiB
TypeScript
45 lines
1.2 KiB
TypeScript
import { Text } from 'react-native';
|
|
|
|
export function RegularText({ style, children, ...rest }: Text['props']) {
|
|
return (
|
|
<Text style={[{ fontFamily: 'OpenSansRegular' }, style]} {...rest}>
|
|
{children}
|
|
</Text>
|
|
);
|
|
}
|
|
export function BoldText({ style, children, ...rest }: Text['props']) {
|
|
return (
|
|
<Text style={[{ fontFamily: 'OpenSansBold' }, style]} {...rest}>
|
|
{children}
|
|
</Text>
|
|
);
|
|
}
|
|
export function SemiBoldText({ style, children, ...rest }: Text['props']) {
|
|
return (
|
|
<Text style={[{ fontFamily: 'OpenSansSemiBold' }, style]} {...rest}>
|
|
{children}
|
|
</Text>
|
|
);
|
|
}
|
|
export function MediumText({ style, children, ...rest }: Text['props']) {
|
|
return (
|
|
<Text style={[{ fontFamily: 'OpenSansMedium' }, style]} {...rest}>
|
|
{children}
|
|
</Text>
|
|
);
|
|
}
|
|
export function ExtraBoldText({ style, children, ...rest }: Text['props']) {
|
|
return (
|
|
<Text style={[{ fontFamily: 'OpenSansExtraBold' }, style]} {...rest}>
|
|
{children}
|
|
</Text>
|
|
);
|
|
}
|
|
export function LightText({ style, children, ...rest }: Text['props']) {
|
|
return (
|
|
<Text style={[{ fontFamily: 'OpenSansLight' }, style]} {...rest}>
|
|
{children}
|
|
</Text>
|
|
);
|
|
}
|