react-native-fittedtext
A React Native text component that sets its fontSize
to fill a target height.
Installation
npm install react-native-fittedtext --save
Usage
<FittedText => I will expand to fill the specified height!</FittedText>
Full example
;;; = { var height width = Dimensions; return <View style=flex: 1> <FittedText targetHeight=height> I will expand to fill the window! </FittedText> </View> ;} AppRegistry;