react-native-auto-scale-text
Version:
React Native library that supports auto scale font based on container for Android and iOS
13 lines (11 loc) • 298 B
JavaScript
import React from 'react';
import { View } from 'react-native';
import AutoScaleText from './components/AutoScaleText';
type Props = {};
export default function ({}: Props) {
return <AutoScaleText
style={{width: 100}}
maxLines={3} maxFontSize={14}>
This is example text
</AutoScaleText>
}