react-native-reanimated
Version:
More powerful alternative to Animated library for React Native.
24 lines (23 loc) • 493 B
JavaScript
;
import { parseDimensionValue } from '../utils';
export const processPaddingHorizontal = value => {
const result = parseDimensionValue(value);
if (!result) {
return;
}
return {
paddingLeft: result,
paddingRight: result
};
};
export const processPaddingVertical = value => {
const result = parseDimensionValue(value);
if (!result) {
return;
}
return {
paddingTop: result,
paddingBottom: result
};
};
//# sourceMappingURL=paddings.js.map