npm.io
1.0.1 • Published 9 years ago

react-native-stylesheet-normalize

Licence
MIT
Version
1.0.1
Deps
0
Vulns
0
Weekly
0
Stars
6

react-native-styleSheet-normalize

normalize fontSize in react-native StyleSheet.

Why

In different devices there are different pixelRatio, width and height. So appearance should not be always the same, the appearance should adapt it's fontSize to match user's device. Use normalizeText extract from react-native-elements (see here).

Usage

just replace your StyleSheet.create to StyleSheetNormalize.create and that's it!


import StyleSheetNormalize from 'react-native-stylesheet-normalize';


const styles = StyleSheetNormalize.create({
  // your styles here
});

License

MIT