A React Native text component that sets its fontSize to fill a target height.
npm install react-native-fittedtextA React Native text component that sets its fontSize to fill a target height.
```
npm install react-native-fittedtext --save
`jsx`
I will expand to fill the specified height!
`js
import React, { Component } from 'react';
import { AppRegistry, Dimensions, Text, View } from 'react-native';
import FittedText from 'react-native-fittedtext';
export default FittedExample = () => {
var {height, width} = Dimensions.get('window');
return (
I will expand to fill the window!
);
}
AppRegistry.registerComponent('FittedExample', () => FittedExample);
``