Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR TYPESCRIPT

react-native-size-matters npm

import { scale, verticalScale, moderateScale } from 'react-native-size-matters';

const Component = props =>
    <View style={{
        width: scale(30),
        height: verticalScale(50),
          margin:moderateScale(10),
        padding: moderateScale(5)
    }}/>;
Source by www.npmjs.com #
 
PREVIOUS NEXT
Tagged: #npm
ADD COMMENT
Topic
Name
9+8 =