react-native-normalized-size
v0.1.2
Published
normalizing size of elements across different devices.
Downloads
7
Readme
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>
);
};
Contributing
See the contributing guide to learn how to contribute to the repository and the development workflow.
License
MIT