Skip to content

A simple responsive font size which depends on screen size.

License

Notifications You must be signed in to change notification settings

gie3d/react-native-font-responsive

Repository files navigation

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

About

A simple responsive font size which depends on screen size.

Resources

License

Stars

Watchers

Forks

Packages

No packages published