0.1.0 • Published 3 years ago

react-native-font-responsive v0.1.0

Weekly downloads
5
License
MIT
Repository
github
Last release
3 years ago

react-native-font-responsive

A simple responsive font size which depends on screen size.

Installation

yarn add react-native-font-responsive

Usage

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>
  );
}

Contributing

See the contributing guide to learn how to contribute to the repository and the development workflow.

License

MIT