Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
pureRender: function pureRender (property) {
const {
resizeMode,
source,
defaultSource,
style,
children
} = Hf.fallback({
resizeMode: `cover`
}).of(property);
let adjustedStyle = DEFAULT_WALLPAPER_IMAGE_STYLE;
adjustedStyle = Hf.isObject(style) ? Hf.merge(adjustedStyle).with(style) : adjustedStyle;
return (
domain.incoming(EVENT.ON.UPDATE_FIELD_INPUT_VALIDATION).handle((validator) => {
const {
value,
validate
} = validator;
const {
validated,
status
} = Hf.fallback({
validated: false,
status: ``
}).of(validate(value));
return {
validated,
status
};
}).relay(EVENT.DO.MUTATE_FIELD_INPUT_VALIDATION);
pureRender: function pureRender (property) {
const {
thickness,
style
} = Hf.fallback({
thickness: 1
}).of(property);
let adjustedStyle = Hf.merge(DEFAULT_DIVIDER_VIEW_STYLE).with({
container: {
height: thickness
}
});
adjustedStyle = Hf.isObject(style) ? Hf.merge(adjustedStyle).with(style) : adjustedStyle;
return (
pureRender: function pureRender (property) {
const {
shade,
style,
children
} = Hf.fallback({
shade: `light`
}).of(property);
let adjustedStyle = Hf.merge(DEFAULT_SCREEN_VIEW_STYLE).with({
container: {
backgroundColor: Ht.Theme.color.body.container[shade]
}
});
adjustedStyle = Hf.isObject(style) ? Hf.merge(adjustedStyle).with(style) : adjustedStyle;
return (
domain.incoming(EVENT.ON.UPDATE_FIELD_INPUT_VALIDATION).handle((validator) => {
const {
value,
validate
} = validator;
const {
validated,
status
} = Hf.fallback({
validated: false,
status: ``
}).of(validate(value));
return {
validated,
status
};
}).relay(EVENT.DO.MUTATE_FIELD_INPUT_VALIDATION);