react-native-font-responsive
TypeScript icon, indicating that this package has built-in type declarations

0.1.0 • Public • Published

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

Package Sidebar

Install

npm i react-native-font-responsive

Weekly Downloads

0

Version

0.1.0

License

MIT

Unpacked Size

8.01 kB

Total Files

9

Last publish

Collaborators

  • gie3d