A simple responsive font size which depends on screen size.
yarn add react-native-font-responsive
import * as React from 'react';
import { StyleSheet, View, Text } from 'react-native';
import FontResponsive from 'react-native-font-responsive';
export default function App() {
return (
<View>
<Text style={{ fontSize: FontResponsive(20) }}>Hello World</Text>
</View>
);
}
See the contributing guide to learn how to contribute to the repository and the development workflow.
MIT