Skip to content

Latest commit

 

History

History
42 lines (29 loc) · 826 Bytes

File metadata and controls

42 lines (29 loc) · 826 Bytes

react-native-normalized-size

normalizing size of elements across different devices.

Installation

npm install react-native-normalized-size

Usage

import normalizedSize from 'react-native-normalized-size';
import { Text } from 'react-native';

// ...

const MyComponent = () => {
    return (
        <Text
            style={{
                fontSize: normalizedSize(20),
            }}>
            My Component
        </Text>
    );
};

Output View

Screenshot 2024-06-27 at 10 11 43

Contributing

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

License

MIT