react-native-stylesheet-normalize
v1.0.1
Published
react-native normalize stylesheet
Readme
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
