react-native-ui-lib
Version:
[](https://travis-ci.org/wix/react-native-ui-lib) [](https://www.npmjs.com/package/react-native-ui-lib) [![NPM Down
27 lines (23 loc) • 496 B
JavaScript
import _ from 'lodash';
import {Constants} from '../helpers';
class BorderRadiuses {
br0 = Constants.isIOS ? 0 : 0;
br10 = Constants.isIOS ? 3 : 2;
br20 = 6;
br30 = Constants.isIOS ? 9 : 8;
br40 = 12;
br50 = Constants.isIOS ? 15 : 16;
br60 = 20;
br100 = 999;
getKeysPattern() {
return new RegExp(
_.chain(this)
.keys()
.map(key => [`${key}`])
.flatten()
.join('|')
.value(),
);
}
}
export default new BorderRadiuses();